There is one link telling a bit about other configuration setting you should read Which gets priority, maxRequestLength or maxAllowedContentLength? And i dont think there is other way as to read the ini file (php have simple ini file reader).
I could propose using some library that splits files like plupload
- it can split your files to smaller pieces, upload each piece and then recombine it into one big file bypassing the server maximum upload file / body limits.
How can I get the IIS upload limit using PHP?
Vra
I want make a check against the IIS upload limit of the server my PHP script is running in the same manner as ini_get('upload_max_filesize')
works for the PHP settings.
I'm thinking about parsing the web.config
file to get the value of maxAllowedContentLength
, but I was wondering if there is a standard way to ask the webserver directly.
Oplossing
Gelisensieer onder: CC-BY-SA met toeskrywing
Nie verbonde aan StackOverflow