darknessmdk Posted February 23, 2007 Share Posted February 23, 2007 I built a file upload and it works great, however When I try to upload a file that is larger than 5 mb it times out it seems. I've searched these forums and cant find an answer as to why this happens or how to fix it. My upload needs to be able to upload files that are over 5 MB. Quote Link to comment https://forums.phpfreaks.com/topic/39859-uploading-a-file-5mb/ Share on other sites More sharing options...
cmgmyr Posted February 23, 2007 Share Posted February 23, 2007 you have to change the max upload file size in your php.ini file to be bigger then 5M Quote Link to comment https://forums.phpfreaks.com/topic/39859-uploading-a-file-5mb/#findComment-192561 Share on other sites More sharing options...
Archadian Posted February 23, 2007 Share Posted February 23, 2007 1024 bits = 1k, 1024k = 1mb the MAX_FILE_SIZE needs to be changed to 5MB in bits... 1024 * 1024 * 5 = 5MB 1024 * 1024 * 6= 6MB 1024 * 1024 * 7 = 7MB and so on... <input = "hidden" MAX_FILE_SIZE = "5242880"> // i believe this would equal to 5MB Quote Link to comment https://forums.phpfreaks.com/topic/39859-uploading-a-file-5mb/#findComment-192565 Share on other sites More sharing options...
darknessmdk Posted February 24, 2007 Author Share Posted February 24, 2007 I had no idea what a php.ini file is, just read up on it. going to try to make my own. I tried the <input = "hidden" MAX_FILE_SIZE = "5242880"> and it still timed out Quote Link to comment https://forums.phpfreaks.com/topic/39859-uploading-a-file-5mb/#findComment-192814 Share on other sites More sharing options...
Archadian Posted February 24, 2007 Share Posted February 24, 2007 do you have your own server or are you getting someone to host it for you? If your own, if you are using PHP <= 4 the its in your C:\WINDOWS\ folder, if you are using PHP 5 then its in your C:\PHP\ folder Quote Link to comment https://forums.phpfreaks.com/topic/39859-uploading-a-file-5mb/#findComment-192883 Share on other sites More sharing options...
darknessmdk Posted February 24, 2007 Author Share Posted February 24, 2007 No I don't have my own server, I'm using godaddy for my hosting Quote Link to comment https://forums.phpfreaks.com/topic/39859-uploading-a-file-5mb/#findComment-192996 Share on other sites More sharing options...
cmgmyr Posted February 24, 2007 Share Posted February 24, 2007 Check this out: http://help.godaddy.com/article.php?article_id=1409&topic_id=&prog_id=GoDaddy& Quote Link to comment https://forums.phpfreaks.com/topic/39859-uploading-a-file-5mb/#findComment-193191 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.