in reply to Re: Setting file upload permissions
in thread Setting file upload permissions
$mode = 0644; # take form data my $remotefile = param('upload'); # make new variable to prevent overwriting of form data my $filename = $remotefile; # remove all directories in the file name path $filename =~ s/^.*[\\\/]//; # full file path to upload directory (must include filename) my $localfile = "/home/sulfericacid/public_html/upload/files/$filename +"; # open a new file and transfer bit by bit from what's in the buffer open (SAVED,">>$localfile") || die $!; while ($bytesread=read($remotefile,$buffer,1024)) { chmod $mode, '$filename'; print SAVED $buffer; } close SAVED;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Setting file upload permissions
by Heidegger (Hermit) on Apr 18, 2003 at 07:05 UTC | |
by sulfericacid (Deacon) on Apr 18, 2003 at 07:24 UTC | |
by jeffa (Bishop) on Apr 18, 2003 at 17:20 UTC | |
by sulfericacid (Deacon) on Apr 18, 2003 at 20:16 UTC |