Why does Laravel's getMimeType() method identify a file as “application/octet-stream” when the file has the type attribute of “audio/mpeg”?

后端 未结 2 1305
感动是毒
感动是毒 2020-12-14 01:02

I\'m trying to upload a MP3 file to a Laravel application and have ran into an issue where even though the file has an attribute set to \"audio/mpeg\" it is uploaded as a \"

2条回答
  •  臣服心动
    2020-12-14 01:42

    I was having this issue with Laravel 5.4. I fixed by setting post_max_size and upload_max_filesize in my php.ini to a higher value.

    After that, I actually had to do a hard restart of OSX before it would actually reflect in the application properly.

提交回复
热议问题