Break HTTP file uploading from server side by PHP or Apache

后端 未结 7 1324
盖世英雄少女心
盖世英雄少女心 2020-12-16 01:53

When uploading big file (>100M) to server, PHP always accept entire data POST from browser first. We cannot inject into the process of uploading.

For example, check

7条回答
  •  天涯浪人
    2020-12-16 01:59

    Use javascript. Submit a pre-form via ajax when user clicks submit, wait for the ajax response, then when it comes back successful or not, submit the actual form. You can also have a fallback to the method you don't want which is better than nothing.

    
    
    
    Send this file:

提交回复
热议问题