Multiple images upload in PHP - more than 5

后端 未结 1 1808
被撕碎了的回忆
被撕碎了的回忆 2020-12-21 11:10

I have an image upload function that supports multiple files upload, but somehow it only uploads five images at once at most.

I really need it working with like mayb

相关标签:
1条回答
  • 2020-12-21 12:03

    If you have access to php.ini, try setting the max_file_uploads setting. GoDaddy may have lowered it and you can adjust it in php.ini

    max-file-uploads


    Never mind, I think I got it.

    count($_FILES['upload'])
    

    is wrong. Do

    count($_FILES['upload']['name'])
    

    $_FILES['upload'] always has five elements: name, tmp_name, size, type, and error.

    0 讨论(0)
提交回复
热议问题