apostrophe-documentation icon indicating copy to clipboard operation
apostrophe-documentation copied to clipboard

Document apos-attachments disabledFileKey option.

Open abea opened this issue 6 years ago • 0 comments

https://github.com/apostrophecms/apostrophe-redirects/issues/10#issuecomment-392927735

Quoth Tom:

There is now a practical path to fix this:

  1. npm update
'apostrophe-attachments': {
  uploadfs: {
    disabledFileKey: 'very-random-string-please-not-this'
  }
}
  1. Deploy as usual. (Please note: I put these steps in this order for reasons)

  2. 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.

abea avatar May 29 '18 20:05 abea