HTML Upload MAX_FILE_SIZE does not appear to work

后端 未结 7 2249
星月不相逢
星月不相逢 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:23

    It's only supposed to send the information to the server. The reason that it must preceed the file field is that it has to come before the file payload in the request for the server to be able to use it to check the size of the upload.

    How the value is used on the server depends on what you use to take care of the upload. The code is supposedly intended for a specific upload component that specifically looks for that value.

    It seems that the built in upload support in PHP is one to use this field value.

提交回复
热议问题