oscommerce 中的 $_FILES 限制 (categories.php)
我尝试将 oscommerce 从categories.php 上的每个产品 6 个附加图像扩展到 12 个图像,
但是当我提交时,它仅在 $_FILES 数组中显示 9 个文件 无论我改变什么,我都不能得到超过 9 个。我尝试了不同的变体只是为了测试它,数组总是停在 9 个元素处,第 10 个元素被切断。 有人知道会发生什么吗?
这是 $_FILES 的大小和数组输出。你可以看到它停在 test2 处,其余的都丢失了
sizeof files:20
Array ( [products_image] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_med] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_lrg] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_1] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_1] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_2] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_2] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_3] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_3] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_4] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_4] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_5] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_5] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_6] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_6] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_7] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_7] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_8] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_8] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [test2] => Array ( [name] => letters_613.gif [type] => image/gif [tmp_name] => /var/www/html/web978/phptmp/php49lS7C [error] => 0 [size] => 3852 ) ) Array ( [products_image] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_med] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_lrg] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_1] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_1] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_2] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_2] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_3] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_3] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_4] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_4] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_5] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_5] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_6] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_6] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_7] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_7] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_8] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_8] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [test2] => Array ( [name] => letters_613.gif [type] => image/gif [tmp_name] => /var/www/html/web978/phptmp/php49lS7C [error] => 0 [size] => 3852 ) )
I tried to extend oscommerce from 6 additional images to 12 images per product on the categories.php
But when I submit it shows only 9 files in the $_FILES array
no matter what I change I cannot get more than 9. I tried different variations just for testing it and the array always stops at 9 elements and the 10th gets cut off.
Anybody have an idea what could be going on?
this is the sizeof $_FILES and array output. You can see it stops at test2 and the rest is missing
sizeof files:20
Array ( [products_image] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_med] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_lrg] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_1] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_1] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_2] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_2] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_3] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_3] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_4] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_4] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_5] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_5] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_6] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_6] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_7] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_7] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_8] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_8] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [test2] => Array ( [name] => letters_613.gif [type] => image/gif [tmp_name] => /var/www/html/web978/phptmp/php49lS7C [error] => 0 [size] => 3852 ) ) Array ( [products_image] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_med] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_lrg] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_1] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_1] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_2] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_2] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_3] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_3] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_4] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_4] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_5] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_5] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_6] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_6] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_7] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_7] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_sm_8] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [products_image_xl_8] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [test2] => Array ( [name] => letters_613.gif [type] => image/gif [tmp_name] => /var/www/html/web978/phptmp/php49lS7C [error] => 0 [size] => 3852 ) )
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 http: 中查找
max_file_uploads
//php.net/manual/en/ini.core.php#ini.sect.file-uploads此外,集体大小也受到这些设置的限制。限制金额的不是OSC。
Look for
max_file_uploads
in http://php.net/manual/en/ini.core.php#ini.sect.file-uploadsAlso the collective size is constrained by those settings. It's not OSC which restricts the amount.