in reply to Setting file upload permissions
The script that handles your image upload has to call the chmod function on the uploaded file.
See perldoc chmod.
$cnt = chmod 0755, 'foo', 'bar'; chmod 0755, @executables; $mode = '0644'; chmod $mode, 'foo'; # !!! sets mode to # --w----r-T $mode = '0644'; chmod oct($mode), 'foo'; # this is better $mode = 0644; chmod $mode, 'foo'; # this is best
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Setting file upload permissions
by sulfericacid (Deacon) on Apr 18, 2003 at 06:51 UTC | |
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 |