
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Need help with image upload- any body?
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">
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users