Any way to choose the destination where the upload folder should live?
We are using a connected volume drive for our servers to store the uploads.
Would be great to have it in one place to also manage the backups more easily (without backing up node_modules as well )
Thank you guys!
Sebastian
EDIT: I see there is this workaround with a deployment hook (Using Volume Storage - Cleavr docs). A built in solution would be great though!
EDIT 2: If i use a strapi project with a custom upload symlink hook, can i disable saving the uploads folder to //uploads? Should i just leave the uploads-field blank for that to be disabled?
To disable uploading to /uploads, you’ll have to disable the Activate New Deployment And Link Media Uploads hook. But the thing to consider here before disabling this hook is it performs two actions: activating the new deployment and creating a link to uploads. Also, if you disable the hook you need to create two new custom hooks:
To activate the new deployment.
Upload hook.
We came up with this implementation of combining two tasks into one to improve performance and don’t allow disabling it as of now unless the hook is disabled.
Another solution here can be, run your new custom hook after Activate New Deployment And Link Media Uploads. From the new hook remove the link that cleavr creates for public/uploads and re-create a new link pointing to your desired destination.