大尺寸多图上传

发布于 2024-12-19 03:46:39 字数 222 浏览 6 评论 0原文

我建立了一个网站,上传 10 张太大(10MB)的图像。当上传开始时,它持续一段时间然后会出现一个空白页面。我尝试更改 .htaccess 文件中的 php_values,因为我无权更改 php.ini 文件中的设置(它是共享服务器)。对此我有一些疑问。

1)如果文件要发布请求会发生什么,因为我想快速上传文件。

2)发布请求或上传文件需要时间,我正在使用 php GD 函数裁剪图像(循环)。

I built a website in that I upload 10 too big size(10MB) images. When uploading start, it continues to some time then a blank page will come. I tried to change php_values in .htaccess file, because I don't have permission to change the settings in php.ini file (it's shared server). I have some doubts regarding this.

1) what happen if file will going to post request, because I want fastly uploded the files.

2) it takes time when posting the request or uploding the file, I am cropping the images (loop) using php GD functions.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

撩动你心 2024-12-26 03:46:39

这是因为您的网络托管提供商设置的限制。您尝试更改 .htaccess 中的哪些值?

您可以尝试使用一些 Flash 上传器,尽管服务器施加了限制,但它应该可以工作。 SWFUpload 是一个不错的选择。

It is because of the limits your web hosting provider set. Which values did you try to change in the .htaccess?

You could try using some flash uploader, it should work despite the limits imposed by the server. A good one is SWFUpload.

时光匆匆的小流年 2024-12-26 03:46:39

这是因为脚本的执行时间。
您可以编辑 php.ini 文件。
如果不允许,您可以使用 .htaccess 文件为脚本设置 *MAX_EXECUTION_TIME*

That is because of the exection time of a script.
You can edit your php.ini file.
If that is not permitted you can set the *MAX_EXECUTION_TIME* for a script using your .htaccess file.

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