Hello again, figured I’d come back for one more round of help since I passed my first hurdle thanks to this forum. ?
The following is 2/3 of a script (other 1/3 is just a general email script) that is making a directory dependent on the user’s input, and uploading files in to that directory. What I need help on this times is this: [i]what in the following script is capping off the file size?
[quote]
<?
$oldumask = umask(0);
mkdir(“../download/”.($_POST[‘dirName’]), 0777);
umask($oldumask);
$uploadNeed = $_POST[‘uploadNeed’];
// start for loop
for($x=0;$x<$uploadNeed;$x++){
$file_name = $
// strip file_name of slashes
$file_name = stripslashes($file_name);
$file_name = str_replace(“‘”,””,$file_name);
$copy = copy($_FILES[‘uploadFile’. $x][‘tmp_name’],”../download/”.($
// check if successfully copied
if($copy){
echo “The file $file_name has uploaded sucessfully!<br>”;
}else{
echo “<h1>The file $file_name could NOT be uploaded!</h1>”;
}
} // end of loop
print “<br><p><img src=’images/thankYouLogo.gif’></p><h1>What do you want to do now?</h1><p><a href=’upload1.php’>Make another upload?</a><br><a href=’../download/’>Or visit the download section?</a></p>”
?>
During testing, some users ran into size limitation issues, which simply caused the script to error out and, if applicable in the case of multiple file uplaods, only took the smaller files. I haven’t quite locked it down, but somewhere around 2 MBs it was getting finicky about size…
Is there something in this code that I’m not seeing that’s limiting size? If there isn’t what else could it be?
Thanks in advance for any help!