[ic] image upload chmod

Mat Jones - booksellersolutions.com interchange-users@lists.akopia.com
Tue May 29 13:38:01 2001


I am trying to create a public image gallery, where people can upload image
files.
I am using the [value-extended] tag as you can see in the sample code below.
The catalog I am running is on 4.6.1.
My problem is, when the image is save it has -rw-rw---- permissions. Is
there a tag I can use to change the file permissions so it is world
readable, without me having to go in to that directory and do a chmod each
day..

Thanks

Mat

[set name=upload_filename interpolate=1][calc]
$filename = "";
$filename = $CGI->{newfile};
$filename =~ s|.*[\\/]||;
return $filename;
[/calc][/set]

[value-extended Yes=1 No=0 name=newfile
outfile="images/publicgallery/[scratch upload_filename]"]


booksellersolutions.com

Read what the SF Examiner says about booksellersolutions.com:
http://www.sfexaminer.com/business/default.jsp?story=b.web.0121

2141 Mission St #301
San Francisco, CA 94110
(415) 554-0568