
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Images uploaded by customers?Help please
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]"]
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users