Hello,
I am having a problem with setting up a picture uploading feature. When I use the write to file script it creates the file, but the file ends up being blank. It uses the right file name I specify and goes to the right directory.
This is what my code looks like:
open ( UPLOADFILE, ">$upload_dir/$n_listing_5_picture_6" ) or die "$!";
binmode UPLOADFILE;
while ( <$upload_filehandle35> )
{
print UPLOADFILE;
}
close UPLOADFILE;
What could be wrong? I have 35 total picture uploads in my script (this is the 35th). $n_listing_5_picture_6 is the file name I specify in a variable.
I am not showing the whole script because the entire script is over 2000 lines long. Please help me!
I am having a problem with setting up a picture uploading feature. When I use the write to file script it creates the file, but the file ends up being blank. It uses the right file name I specify and goes to the right directory.
This is what my code looks like:
open ( UPLOADFILE, ">$upload_dir/$n_listing_5_picture_6" ) or die "$!";
binmode UPLOADFILE;
while ( <$upload_filehandle35> )
{
print UPLOADFILE;
}
close UPLOADFILE;
What could be wrong? I have 35 total picture uploads in my script (this is the 35th). $n_listing_5_picture_6 is the file name I specify in a variable.
I am not showing the whole script because the entire script is over 2000 lines long. Please help me!