htmanning has asked for the wisdom of the Perl Monks concerning the following question:
open(OUTFILE, ">$target_dir\/$Filename") || die "<font color=red><b>Er +ror: </b></font>Cannot open file"; undef $BytesRead; undef $Buffer; while ($read_bytes = read($Full_name,$Buffer,1024)) { #read file for u +ploading one K at a time $total_bytes += $read_bytes; print OUTFILE $Buffer; } $Confirmation{$Filename} = $total_bytes; close($Full_name); close(OUTFILE); chmod (0777, "$target_dir\/$Filename"); } } $max_filesize = "46080"; #45K $File = "$target_dir\/$Filename";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get jpg dimensions while uploading?
by Eliya (Vicar) on Mar 09, 2011 at 02:20 UTC | |
by htmanning (Friar) on Mar 10, 2011 at 19:47 UTC | |
|
Re: Get jpg dimensions while uploading?
by Anonymous Monk on Mar 09, 2011 at 02:21 UTC | |
|
Re: Get jpg dimensions while uploading?
by bart (Canon) on Mar 09, 2011 at 08:29 UTC | |
|
Re: Get jpg dimensions while uploading?
by ww (Archbishop) on Mar 09, 2011 at 02:37 UTC | |
|
Re: Get jpg dimensions while uploading?
by Khen1950fx (Canon) on Mar 09, 2011 at 08:13 UTC |