Php upload and bandwidth/traffic question -
i have set upload limit 3m in php.ini. if uploads file 50 mb, upload stop when hits 3mb or continue until upload complete, reads filesize , deletes file?
if you're using apache web server, php doesn't chance start until request completes. thus, upload limit comes action after whole upload finishes. apache first receives entire request, , only then invoke appropriate handler (in case, php). since there no server-side mechanism abort http request in progress and return response, you'll need wait until whole request complete.
so, answer question: no, upload go through in full; php's internal logic check uploaded file size, see it's larger limit, , fail error. php script not chance run, don't rely on runtime checks - won't executed @ all.
Comments
Post a Comment