无法使用 React Native 上传录制的视频超过几秒拉维尔
我有一个简单的 React Native 应用程序,它使用相机。我有一个录制视频的按钮。录制停止后,视频就会发送到 API 端点,该端点可以有效地将视频上传到网络。
一切都很顺利——除非视频长度超过 5 或 6 秒。
任何超过 7 秒的时间似乎都会从 Web 应用程序返回错误。
我“必须”假设这是文件大小的问题 - 但是,我检查了 PHP 设置,它们如下......
post_max_size = 2500M
upload_max_filesize = 2000M
memory_limit = 1000M
max_execution_time = 360
max_input_time = 3000
max_input_vars = 3000
这些视频不可能太大以至于超出这些限制 - 所以我处于这里有点损失。
知道我可能会错过什么吗?
I have a simple React Native app, that makes use of the Camera. I have a button that records video. As soon as the recording is stopped, the video gets sent to an API endpoint that effectively uploads the video to the web.
Everything works great – unless the video is longer than about 5 or 6 seconds.
Anything that is about 7 seconds longer seems to return an error from the web application.
I "have" to assume this is an issue with file size – but, I checked the PHP settings, and they are as follows...
post_max_size = 2500M
upload_max_filesize = 2000M
memory_limit = 1000M
max_execution_time = 360
max_input_time = 3000
max_input_vars = 3000
There's no way these videos are so big that they would exceed those limits – so I am at a bit of a loss here.
Any idea what I might be missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于任何可能遇到类似问题的人 – 事实证明我的 NGINX 设置有自己的上传限制。
我更改了 NGINX 设置,它修复了所有问题。
For anybody who might have a similar issue – it turns out that my NGINX settings had an upload limit of their own.
I changed the NGINX settings, and it fixed everything.