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

(fix) deleteing files from the fs or fs adapters was broken, and now is not #4513

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cadriel
Copy link
Contributor

@cadriel cadriel commented Nov 17, 2017

When setting autoCleanup === true for Types.File the admin would error, and files would not be correctly removed from the relevant file system. I tried this against the Azure adapter and the built in FS adapter.

This PR fixes those issues, and seems to work for both adapters fine.

No tests were broken during the course of this change.

  image1: { type: Types.File, autoCleanup: true, storage: azureStorage },
  image2: { type: Types.File, autoCleanup: true, storage: fileStorage },

@wmertens @jossmac @JedWatson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants