I encountered a problem while uploading any Media file ( Image/Audio/Video/PDF/CSV ), I GOT mimeType: "application/octet-stream"
Illuminate\Http\UploadedFile Object ( [test:Symfony\Component\HttpFoundation\File\UploadedFile:private] => [originalName:Symfony\Component\HttpFoundation\File\UploadedFile:private] => Screenshot from 2020-01-06 17-15-06.png [mimeType:Symfony\Component\HttpFoundation\File\UploadedFile:private] => application/octet-stream [error:Symfony\Component\HttpFoundation\File\UploadedFile:private] => 0 [hashName:protected] => [pathName:SplFileInfo:private] => [fileName:SplFileInfo:private] => )
as i'm using PHP version => 7.2.26 Laravel Version => 5.6
php.ini Configuration
upload_max_filesize => 20M post_max_size => 150M
And it is not like that if i tried to uplaod file of smaller size then it will work , it behaves like if today i restart the server then for next 1 or 2 days it works fine but there after same issue .
I think there is something which we are missing in configuration,but don't know what. Does anyone have an idea?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire