Comments (7)
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.
from messenger.
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.
Status Code: 422 Unprocessable Content
from messenger.
You mentioned you adjusted your Nginx conf to allow 20mb, but did you also update your php.ini
's post_max_size
and upload_max_filesize
?
from messenger.
Yes the values are ok because I can upload more then 3mb of images as well. Only issue is with the Audio file
from messenger.
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.
from messenger.
Config is default.
'message_audio' => [ 'upload' => env('MESSENGER_MESSAGE_AUDIO_UPLOAD', true), 'size_limit' => env('MESSENGER_MESSAGE_AUDIO_SIZE_LIMIT', 10240), 'mime_types' => env('MESSENGER_MESSAGE_AUDIO_MIME_TYPES', 'aac,mp3,oga,ogg,wav,weba,webm'), ],
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.
Thanks
from messenger.
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.
from messenger.
Related Issues (20)
- How to search in all users? And add participants in a group? HOT 1
- Message forwarding HOT 1
- API explorer at https://tippindev.com/api-explorer: Page not loading HOT 1
- Not finding my existing users HOT 1
- The given provider { App\Models\User } must implement the interface RTippin\Messenger\Contracts\MessengerProvider HOT 2
- Issue sending message after initiating conversation HOT 10
- Messenger (USer model) fields HOT 2
- Not authorized to view thread. HOT 3
- Is there any way to use that Script without Pusher ??? HOT 9
- How to integrate that Application (by synchronizing "users" table of migration) to our existing Laravel App ??? HOT 3
- Unable to install it on Laravel 9 ??? Help me to fix it HOT 2
- Please help you for these three points about Messenger and its UI packages ???!!!
- How to translate "Messenger UI" views's texts ??? HOT 1
- How to fix "Connection error, messages may be delayed" ERROR in our Messenger UI ???
- 500 (Internal Server Error) in Search System on UI
- [BUG] WebSocket connection to "wss://127.0.0.1:6001/app/b646bf...........client=js&version=7.6.0&flash=false" failed HOT 1
- heartbeat problem HOT 3
- Intervention/imagecache abandoned HOT 2
- Laravel 11 support? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from messenger.