Skip to content

Files saved with S3Adapter: Content-Type not set in S3 #1900

Description

@pascalgiguere

I have set up the S3 FileAdapter using this guide.

I can successfully create files using new Parse.File("file.html", bytes, "text/html");

The files will appear in my S3 bucket, but with the Content-Type "text/plain" rather than "text/html" as expected.

parse-server 2.2.10

Edit: Also probably related to the same issue:
If I save a file without any extension, e.g. new Parse.File("photo", bytes);, .txt will be appended to the file's name. The file's key in S3 will look like 5658b255f1cb4413e6c84717adf79ebc_photo.txt. This behaviour was not present with hosted Parse.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions