apostrophe-documentation
apostrophe-documentation copied to clipboard
Document apos-attachments disabledFileKey option.
https://github.com/apostrophecms/apostrophe-redirects/issues/10#issuecomment-392927735
Quoth Tom:
There is now a practical path to fix this:
npm update
'apostrophe-attachments': { uploadfs: { disabledFileKey: 'very-random-string-please-not-this' } }
Deploy as usual. (Please note: I put these steps in this order for reasons)
On the server, run this task to complete the transition:
node app apostrophe-attachments:migrate-to-disabled-file-key
Now files in the trash have their names changed rather than their permissions changed. Recommend verifying an example.
BENEFITS
- You can now sync down without permissions nonsense! Woo
- You can now create a redirect for the old URL of the file, because the file ain't there no more.