Simple use case to upload .csv and .json #986

Open
opened 2018-03-05 03:35:56 +00:00 by ashishpok · 2 comments
ashishpok commented 2018-03-05 03:35:56 +00:00 (Migrated from github.com)

I can get every complex mime type working but it doesnt look like I can't get HTTP request with application/json and text/csv mime-parts. Request always goes out as application/octet-stream. I dont see json and csv handled in FileType class. Is there an easy fix for this? Seems simple enough but can't find a way other than of course modifying FileType class.

Payload:
Content-Disposition: form-data; name="file", filename="data.json"
Content-Type: application/octet-stream

I can get every complex mime type working but it doesnt look like I can't get HTTP request with application/json and text/csv mime-parts. Request always goes out as application/octet-stream. I dont see json and csv handled in FileType class. Is there an easy fix for this? Seems simple enough but can't find a way other than of course modifying FileType class. Payload: Content-Disposition: form-data; name="file", filename="data.json" Content-Type: application/octet-stream
meirongding commented 2020-03-31 04:14:11 +00:00 (Migrated from github.com)

any update for this topic?

any update for this topic?
orosl commented 2021-11-17 15:19:41 +00:00 (Migrated from github.com)

Same issue for me, can't load a .json file and it would be such an easy fix..

Same issue for me, can't load a .json file and it would be such an easy fix..
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#986