-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Specify where a file should be uploaded #8731
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
Comments
Thanks for opening this issue!
|
From the related discussions (parse-community/parse-server-s3-adapter#16 and linked), it seems that Parse Server has been prepared to handle directories by allowing the filename to be a path (parse-community/Parse-Swift#417 (comment)), but it depends on the adapter to be able to handle the path. So this issue may belong to parse-server-fs-adapter (you don't have to open a new one, we can transfer this issue if needed). The S3 adapter PRs for this could be a first guideline for implementing this in the FS adapter. We'd be happy to review a PR if you want to give it a try. |
I see that in ((https://github.com/parse-community/Parse-Swift/issues/417#issuecomment-1250171330)) |
Got it;
|
Adding this to the parse server side would also make it possible to handle directory permissions, such as making a directory accept uploads only and not serving files or the opposite. or even add the option of which directories to encrypt files for example an app that has public posts the files wouldn't be encrypted but the files shared via a chat can be encrypted. |
New Feature / Enhancement Checklist
Current Limitation
When trying to upload a file using parse-server-fs-adapter, if you try to specify the folder where a file should be uploaded (for example: folder1.ext) there is an issue where parse server would not allow the the post request.
Feature / Enhancement Description
Add a config option that would specify the files structure, and what subfolders are allowed to be used.
Example Use Case
uploading a file named file1.ext works but when specifying the folder to where to upload the files such as folder1/file1.ext won't work, same as described in this issue parse-community/parse-server-s3-adapter#16
Alternatives / Workarounds
3rd Party References
The text was updated successfully, but these errors were encountered: