[ic] Images uploaded by customers?Help please

Alex Daree interchange-users@interchange.redhat.com
Thu Oct 11 09:20:01 2001


Hi
I am trying to build a code where I allow my customers to upload an image to
the user db. I used this code below and it does upload files but they are
all 0 size, in other words it uploads the name of the file, not the file.
Any ideas? Please....
> [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
 umask=022
   outfile="images/publicgallery/[scratch upload_filename]"]