Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document apos-attachments disabledFileKey option. #100

Open
abea opened this issue May 29, 2018 · 0 comments
Open

Document apos-attachments disabledFileKey option. #100

abea opened this issue May 29, 2018 · 0 comments
Assignees

Comments

@abea
Copy link
Contributor

abea commented May 29, 2018

apostrophecms-legacy/apostrophe-redirects#10 (comment)

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 abea self-assigned this May 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant