-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error "422 Unprocessable Content" while uploading file #54
Comments
Can you please relay the exact message the API returns? 422 isn't anything to go off of alone, need the context from the message to know why your upload didn't pass validation. |
You mentioned you adjusted your Nginx conf to allow 20mb, but did you also update your |
Yes the values are ok because I can upload more then 3mb of images as well. Only issue is with the Audio file |
I would say to check your config/env for the audio size: messenger/config/messenger.php Line 148 in 92cca28
But the error you are getting is not a validation error from a file being too big. It's beyond my package/framework and something to do with your server/environment itself. May want to check your server/nginx logs. |
Config is default.
I have also checked the logs and did not find any errors. Can you please try it on your local with audio file only. It should be more then 2mb. |
I have no issues uploading a 5mb audio file myself, and as I said, the error you are getting from the failed validation is not an issue with my package. I use laravels file validations here: messenger/src/Http/Request/BaseMessageRequest.php Lines 123 to 129 in 92cca28
Sounds to me like your audio file is corrupt or something in your environments that is not clear to me. |
I'm uploading a 2MB mp3 file and it gives me an error "422 Unprocessable Content"
if file size is less then 2mb then it works fine. Limit on my Nginx server is 20MB.
The text was updated successfully, but these errors were encountered: