setContentType
ComputerGuruInTraining opened this issue · 1 comments
Hi,
This works great for uploading an image, but the content-type is set to "application/octet-stream" which means images will only be downloaded and not open in the user's browser. To open in the browser, the content-type needs to be "image/jpeg".
I have tried to set the content-type at time of upload, and after the upload on the existing blob but with no success.
Please could you provide a solution to change the content-type.
Thank you
This appears to be related to this issue in Flysystem, which is what the Laravel filesystem abstraction uses under the bonnet.
It looks like the put
method supports a third parameter for the options, so passing those options through may resolve the problem. If not I'm not sure it can be resolved - third party storage drivers for the Filesystem abstraction have more limited access than those that ship with Laravel, and you might be better off using Flysystem directly.