Replies: 1 comment
-
If I'm not mistaken, you can append WithAttributes, I do this to overrule the user id. The mimetype should be correct however, you can use tools like mediainfo to check the content type. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel 5.8
spatie/laravel-medialibrary 7.19
This is how I'm uploading
I'm uploading
mp3
file but,addMedia
setting themimetype
asvideo/3gpp
. Let me know any way I can manually pass proper mimetype toaddMedia
.This is what will be the upload path
$model->addMedia($file)->toMediaCollection(config('app.name').'/voice/','s3');
What I'm referring is something like this
$model->addMedia($file, 'audio/mpeg')->toMediaCollection(config('app.name').'/voice/','s3');
Beta Was this translation helpful? Give feedback.
All reactions