Closed MicahWW closed 3 months ago
Would the benefit of this change be that the server can have a better expectation of what the format of the data it's receiving is (ie, CSV vs JSON vs plain text vs something else)?
It would standardize how to upload data to the server, as uploading JSON data (not implemented yet but requested in #14) is very easy to upload as raw data and then give a Content-Type header as application/json but currently uploading CSV data the file is attached via a form and it is the only data being submitted on the form. In the link Common Types doc it has a type for CSV so we can mimic how it works for JSON for CSV data.
Right now when uploading CSV files it is being sent as a form-data, look into sending it as raw data and setting the Content-Type just like sending JSON would work.
Content Type doc Common Types doc