无法使用 React Native 上传录制的视频超过几秒拉维尔

发布于 2025-01-11 04:37:32 字数 438 浏览 0 评论 0原文

我有一个简单的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼眸 2025-01-18 04:37:32

对于任何可能遇到类似问题的人 – 事实证明我的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文