I'm trying to copy a 3MB PhotoShop file to our web server, so that our client can download the file. But it continues to give me the error message and nothing get's copied to the server. Here's a snippet of my code that I'm using to try and copy to the server:
if($new_high_res_name != "") {
set_time_limit(300000000);
print "file: ".$new_high_res."<br>\n";
print "name: ".$new_high_res_name."<br>\n";
@copy($new_high_res, "".$virtual_path."high_res/".$new_high_res_name."") OR die ("Couldn't copy high_res to server!");
$high_res = $new_high_res_name;
}
And from the form, I have the following tags:
<input type="file" name="new_high_res" size="20" class="form_tags" />
<input type="hidden" name="max_file_size" value="99999999999" />
I am also copying other images to the server in the same form, and those are going through w/o a problem. It would seem that it is tied to the size of the file. When I try to submit this w/ the 3MB file I'm attempting to upload, it print the NAME of the file, but the file is empty.
Any ideas?
Thanks,
Shaun