[ic] Need help with image upload- any body?

Alex Daree interchange-users@interchange.redhat.com
Wed Oct 10 13:50:01 2001


I have been able to allow my ctustomers to upload an image however with the
image is uploaded to the server, I get the image name uploaded, the size of
all of them is zero (0) , you can open it with a text editor and nothing
realy there. Any thing I might of done wrong ? any body can help?
I am using this code:
[control reset=1]
[set name=upload_filename interpolate=1][calc]
$filename = "";
$filename = $CGI->{newfile};
$filename =~ s|.*[\\/]||;
return $filename;
[/calc][/set]
@_LEFTRIGHT_TOP_@

<!-- BEGIN CONTENT -->
   <FORM ACTION="[process-target] METHOD=POST ENCTYPE="multipart/form-data">
   <INPUT TYPE=hidden NAME=mv_todo     VALUE=return>
<INPUT TYPE=HIDDEN NAME=image value="[scratch upload_filename]">
   <INPUT TYPE=hidden NAME=mv_nextpage VALUE=test>

 [value-extended Yes=1 No=0 name=newfile
 umask=022


   outfile="images/[scratch upload_filename]"]


   <INPUT TYPE=file NAME=newfile>
<INPUT TYPE=submit VALUE="Upload">