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 issue with file upload paths #25

Merged
merged 1 commit into from
May 4, 2022
Merged

Conversation

duncanmcclean
Copy link
Owner

This pull request fixes an issue where files would be created in weird, duplicate paths like /Users/duncan/Sites/some-site.com/public/assets/Users/duncan/Sites/some-site.com/public/assets

The issue was that we were using the disk path as the path for the storing the file inside the filesystem. This PR also strips out the initial / in the file path, in the case that it's present.

Fixes #24

@duncanmcclean duncanmcclean merged commit 8213e1a into main May 4, 2022
@duncanmcclean duncanmcclean deleted the fix/file-uploads-path branch May 4, 2022 19:39
@duncanmcclean
Copy link
Owner Author

Fixed in v1.2.1

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

Successfully merging this pull request may close these issues.

File upload goes to the wrong directory
1 participant