$\ oscommerce中的文件限制(categories.php)
我试图在categories.php上将oscommerce从每个产品的6个附加图像扩展到12个图像 但是当我提交时,它只显示$u files数组中的9个文件 无论我改变什么,我都不能超过9。我尝试了不同的变体只是为了测试它,数组总是在9个元素处停止,第10个元素被切断。 有人知道会发生什么吗 这是$\u文件和数组输出的大小。您可以看到它在test2处停止,其余部分丢失$\ oscommerce中的文件限制(categories.php),php,file-upload,oscommerce,Php,File Upload,Oscommerce,我试图在categories.php上将oscommerce从每个产品的6个附加图像扩展到12个图像 但是当我提交时,它只显示$u files数组中的9个文件 无论我改变什么,我都不能超过9。我尝试了不同的变体只是为了测试它,数组总是在9个元素处停止,第10个元素被切断。 有人知道会发生什么吗 这是$\u文件和数组输出的大小。您可以看到它在test2处停止,其余部分丢失 sizeof files:20 Array ( [products_image] => Array ( [name] =
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 ) )
在中查找
max\u文件上传
集合大小也受这些设置的约束。限制数量的不是OSC。代码有几千行,但你可以想象它是这样的:4不显示在文件数组中,以及之后的所有文件中。我的第一个想法是表单关闭会更快地停止,但事实并非如此。我在提交时添加了$u文件的大小和$u文件的打印。我发现PHP.INI中有一个max FILES post变量,必须设置得更高。默认值为20。当我添加其他字段时,category.php总共有33个文件