Tuesday, March 21, 2017

docx and pptx files uploaded as zip on Larval Valet

I'm struggling with this one and I'm not sure where the issue is.

When I upload a .docx and .pptx it's saved with a .zip extension on the file system instead with the mime type application/octet-stream.

I'm using Laravel Valet at the moment so any .htaccess edits won't work. I've had a look at the nginx mime.types and see both of the mime types for docx and pptx in there.

Does anyone have any ideas on how I can get the files to upload with the correct extension and mime type?

Cheers!



via BarryWalsh

Advertisement