in reply to Re: Re: Setting file upload permissions
in thread Setting file upload permissions
You should call the chmod function after file write to the disk:
# 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)) { print SAVED $buffer; } close SAVED; chmod $mode, '$filename';
Hope this should work ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Setting file upload permissions
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 |