Skip to content

Upload files in folder with S3 adapter #6534

Open
@Klaitos

Description

@Klaitos

Hello,

I know that uploading a file on a specific folder with S3 file adapter is not correctly/fully handled with Parse.Server. I've read that all files are uploaded at the same bucket level.

However, i've uploaded a file manually in a folder in a S3 bucket. Example bucket>folder>myfile.png.
I have set with Mongo manually a parse file field on my object. (MyObject.picture = "folder/myfile.png"
When i'm trying to view this file from the file controller it doesn't works correctly.

http://localhost:1337/api/files/local_app_id/folder/myfile.png -> doesn't work :
{ "error": "unauthorized" }
http://localhost:1337/api/files/local_app_id/folder%2Fmyfile.png
It works !

Do you know how can I fix this or am i missing something ?

Thanks a lot

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions