-
- Notifications
You must be signed in to change notification settings - Fork 88
Open
Description
Assuming the following configuration:
new ParseServer({ preserveFileName: true, filesAdapter: { module: '@parse/s3-files-adapter'. options: { directAccess: false, validateFilename(filename: string) { return null } } })And that it has a file saved with the following name: folder/bar-bar.jpg.
When I retrieve the file URL, the getFileLocation function returns: https://<MOUNT_PATH>/files/<APP_ID>/folder/bar-bar.jpg. However, this URL causes the parse-server to return an error: HTTP 403 - {"error":"unauthorized"}
The correct URL that should be returned is: https://<MOUNT_PATH>/files/<APP_ID>/folder%2Fbar-bar.jpg
I would like to know how you would like to solve this problem? Since the response may behave differently when directAccess is true or false.
Note: I encountered this problem while doing some tests with my PR #117.
Metadata
Metadata
Assignees
Labels
No labels