Closed ptbrowne closed 6 years ago
I don't think it's the right way to do that. Browsers fill automatically the content-type when uploading a file. For nodejs stuff (like ACH), we can rely on packages like mime
.
Yes I think we should rely on mime
to do that. But still I think it should be the responsibility of cozy-client-js to do that (with the help of mime).
In application code (ACH), I see :
I think it should be the responsibility of
client.files.create
to do that.