HTML Upload MAX_FILE_SIZE does not appear to work

后端 未结 7 2134
星月不相逢
星月不相逢 2020-11-29 02:46

I am wondering how is the hidden field named MAX_FILE_SIZE supposed to work?

相关标签:
7条回答
  • 2020-11-29 03:39

    To anyone who had been wonderstruck about some files being easily uploaded and some not, it could be a size issue. I'm sharing this as I was stuck with my PHP code not uploading large files and I kept assuming it wasn't uploading any Excel files. So, if you are using PHP and you want to increase the file upload limit, go to the php.ini file and make the following modifications:

    • upload_max_filesize = 2M

    to be changed to

    • upload_max_filesize = 10M

    • post_max_size = 10M

    or the size required. Then restart the Apache server and the upload will start magically working. Hope this will be of help to someone.

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