Skip to content

Images are saved as application/octet-stream instead of correct content type #1047

@2shrestha22

Description

@2shrestha22

New Issue Checklist

Issue Description

When we save files with ParseXFile(XFile.fromData(bytes), name: 'myimage.jpg'), it is sent with content-type: [application/octet-stream] and the SDK is not able to get correct content type.

Steps to reproduce

Upload an image and see the http request, also preview in parse dashboard. When you open the image link it starts to download immediately instead of previews it. Because it is saved with wrong content type.

Actual Outcome

Images are saved with content-type: [application/octet-stream].

Expected Outcome

Images should be saved with correct content type, when file name is provided.

Environment

Parse Flutter SDK

  • SDK version: 8.0.1
  • Flutter version: all
  • Dart version: all
  • Operating system version: all

Server

  • Parse Server version: all

Logs

Image Image

Metadata

Metadata

Assignees

Labels

type:bugImpaired feature or lacking behavior that is likely assumed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions