jaymc Posted December 13, 2006 Share Posted December 13, 2006 I have a wierd problem. I have an upload form where you can upload multiple files...For some reason, its stoppe working. Now ive been working on it for about an hour trying to locate the root of the problemI've now found that if the total amount of files amount to 8M+ It wont workNow, obviously the first thing I did was check php.inias thought, it was fine[b]upload_max_filesize = 1000M[/b]What is happening? It definetly wont go past 8MEdit: Ive just ran <?php echo ini_get('upload_max_filesize'); ?> and it gave 2MHuh? Quote Link to comment Share on other sites More sharing options...
Round Posted December 13, 2006 Share Posted December 13, 2006 how are you connecting to db?Could be a similar issue I have with maximum size in retrievalcheers Quote Link to comment Share on other sites More sharing options...
jaymc Posted December 13, 2006 Author Share Posted December 13, 2006 Nothing to do with a database... just all PHP Quote Link to comment Share on other sites More sharing options...
jaymc Posted December 13, 2006 Author Share Posted December 13, 2006 Any idea's guys, Really stumped on this one, Its delaying a whole project :( Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted December 13, 2006 Share Posted December 13, 2006 Please post your script (or the portion of it that's giving you the problem) between [nobbc][code][/code][/nobbc] tags.Ken Quote Link to comment Share on other sites More sharing options...
jaymc Posted December 13, 2006 Author Share Posted December 13, 2006 Their is no point because I havnt changed the script, it just stopped working. No i did open the php.ini file about a week ago but didnt edit anything. So obviously something has happened whilst doing that. But the script is fine, here it is anywayform code:[code]<form name='form' action='cheese.php' method='POST' enctype='multipart/form-data'> <input type='hidden' name='genre' value='Dance'> <input type='hidden' name='artistnametxt' value='Ian Van Dahl'> <input type='hidden' name='numtracks' value='13'> <div align=left style='padding:3px;'><b>1) Enter the album name<BR>2) Fill in all the song names and browse for audio<BR>3) Browse for album cover image<BR>4) When you done the above, click 'Upload Album'</b></div><BR> <table cellpadding=0 cellspacing=1><tr><td colspan=2 align=center><input type=text name='albumname' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter the album name' onClick="this.select();"><BR><BR></td></tr><tr> <td><input type=text name='songname1' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 1 name' onClick="this.form.songname1.select();"></td> <td><input type=file name='filename1' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname2' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 2 name' onClick="this.form.songname2.select();"></td> <td><input type=file name='filename2' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname3' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 3 name' onClick="this.form.songname3.select();"></td> <td><input type=file name='filename3' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname4' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 4 name' onClick="this.form.songname4.select();"></td> <td><input type=file name='filename4' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname5' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 5 name' onClick="this.form.songname5.select();"></td> <td><input type=file name='filename5' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname6' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 6 name' onClick="this.form.songname6.select();"></td> <td><input type=file name='filename6' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname7' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 7 name' onClick="this.form.songname7.select();"></td> <td><input type=file name='filename7' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname8' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 8 name' onClick="this.form.songname8.select();"></td> <td><input type=file name='filename8' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname9' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 9 name' onClick="this.form.songname9.select();"></td> <td><input type=file name='filename9' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname10' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 10 name' onClick="this.form.songname10.select();"></td> <td><input type=file name='filename10' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname11' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 11 name' onClick="this.form.songname11.select();"></td> <td><input type=file name='filename11' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname12' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 12 name' onClick="this.form.songname12.select();"></td> <td><input type=file name='filename12' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr> <td><input type=text name='songname13' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 13 name' onClick="this.form.songname13.select();"></td> <td><input type=file name='filename13' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr><td><BR><input type=text READONLY style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Browse for album cover'></td> <td><BR><input type=file name='picture' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr> </table><BR><input type=submit value='Upload Album' class=button OnClick="if(valid==true){this.className='uploadgo'; this.value='Uploading..'}"><BR><BR><div id = "myDivID"></div></form>[/code]and here is the PHP[code]<?print_r($_POST);?>[/code]It works fine, but as I said, when the files amount to over 8M in size, $_POST is empty, so the problem is definetly something to do with upload size/post size Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted December 13, 2006 Share Posted December 13, 2006 Did anything change on your server? What's in the $_FILES array?Ken Quote Link to comment Share on other sites More sharing options...
jaymc Posted December 13, 2006 Author Share Posted December 13, 2006 When the uploads are over 8M both FILES and POST are emptyI cant think of anything that I have changed on the server, as I said I opened php.ini but didnt amend anything Quote Link to comment Share on other sites More sharing options...
jaymc Posted December 14, 2006 Author Share Posted December 14, 2006 Any more ideas? Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted December 14, 2006 Share Posted December 14, 2006 Won't solve your problem, but you might consider using field names like this: [code]<input type='text' name='songname[]' /><input type='text' name='songname[]' />...<input type='text' name='songname[]' />[/code] Quote Link to comment Share on other sites More sharing options...
jaymc Posted December 15, 2006 Author Share Posted December 15, 2006 Ive solved itin php init, one of the comments was split in half on its own line, e.gmax_file_size = 1000M ; this is the maxsize of the fileThanks for the help guys Quote Link to comment 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.