in reply to Re^3: file handing
in thread file handing
i have tried to figure it out. this is wat i mean that open function can be used instead file copy
$IMG = $CGI->param("photo"); my $newfile = '09911.JPG'; my $copydir = 'img'; my $uploadfile = $CGI->upload($IMG); rename($uploadfile, $newfile); open ( UPLOADFILE, "+>$copydir/$newfile" ); close UPLOADFILE;
now the code works as i like it. but i get my pics with zero bytes
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: file handling
by Athanasius (Archbishop) on Sep 23, 2018 at 06:48 UTC |