sheek85 Posted November 12, 2009 Share Posted November 12, 2009 Hey guys, possibly a redundant question, but I have been trying and searching for days to upload large files to my php server using html form. things I have tried: all relevant php.ini settings (max_upload_filesize, post_upload_size, memory limit, execution time, etc) conclusion: after trying these settings I reached the conclusion that post size limit is 2047M, as others have said next: - I have installed ubuntu 9.10 64-bit - I have compiled apache and php using CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" conclusion: I believe I have apache and php both running in 64 bits, but I STILL can't set the postsize limit above 2047M Any new input would be greatly appreciated Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/181231-html-form-post-filesize/ Share on other sites More sharing options...
sheek85 Posted November 16, 2009 Author Share Posted November 16, 2009 Anyone? Quote Link to comment https://forums.phpfreaks.com/topic/181231-html-form-post-filesize/#findComment-958310 Share on other sites More sharing options...
Daniel0 Posted November 16, 2009 Share Posted November 16, 2009 What does php.ini and phpinfo() say? Maybe you're changing the wrong php.ini file. I've tried that before. Quote Link to comment https://forums.phpfreaks.com/topic/181231-html-form-post-filesize/#findComment-958311 Share on other sites More sharing options...
sheek85 Posted November 16, 2009 Author Share Posted November 16, 2009 phpinfo() is saying all of the updated parameters, so it's definitely the right php.ini file I have been playing with. Were you able to ever push it above 2G limit? Quote Link to comment https://forums.phpfreaks.com/topic/181231-html-form-post-filesize/#findComment-958318 Share on other sites More sharing options...
Daniel0 Posted November 16, 2009 Share Posted November 16, 2009 Yeah I just tried setting it to 10G. No problem. Quote Link to comment https://forums.phpfreaks.com/topic/181231-html-form-post-filesize/#findComment-958323 Share on other sites More sharing options...
sheek85 Posted November 16, 2009 Author Share Posted November 16, 2009 well to clarify, it's easy to set it to any value you want "ex: 10G", but the phpinfo() simply displays the string that you entered and not the actual set value. Have you tried setting it to 10G and then successfully uploading large files? Quote Link to comment https://forums.phpfreaks.com/topic/181231-html-form-post-filesize/#findComment-958404 Share on other sites More sharing options...
Daniel0 Posted November 16, 2009 Share Posted November 16, 2009 No, I didn't actually try to upload one. What kind of error do you get? Quote Link to comment https://forums.phpfreaks.com/topic/181231-html-form-post-filesize/#findComment-958507 Share on other sites More sharing options...
sheek85 Posted November 17, 2009 Author Share Posted November 17, 2009 I get errors from other parts of the code that rely on a successful file transfer, such as unzipping it etc. The file simply doesn't make it to the server. It would be great if you could try uploading a large file (>2G) on your setup, you will see the problem immediately. Quote Link to comment https://forums.phpfreaks.com/topic/181231-html-form-post-filesize/#findComment-959271 Share on other sites More sharing options...
sheek85 Posted November 19, 2009 Author Share Posted November 19, 2009 Actually I think it might be a limitation of all the current browsers... any other ideas, workarounds? Quote Link to comment https://forums.phpfreaks.com/topic/181231-html-form-post-filesize/#findComment-961011 Share on other sites More sharing options...
PFMaBiSmAd Posted November 19, 2009 Share Posted November 19, 2009 Are you expecting general users to need to upload that size of a file or just you/administrator/site-owner? You would generally use FTP to move such a large file or break it into manageable pieces then reassemble it on the server after all the pieces have been uploaded. Quote Link to comment https://forums.phpfreaks.com/topic/181231-html-form-post-filesize/#findComment-961017 Share on other sites More sharing options...
Daniel0 Posted November 19, 2009 Share Posted November 19, 2009 This just popped up on internals. It might be related. http://news.php.net/php.internals/46114 Quote Link to comment https://forums.phpfreaks.com/topic/181231-html-form-post-filesize/#findComment-961320 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.