You are not logged in Log in Join
You are here: Home » Members » peterbe » To test if a form has been process WITH a file or not, use this - to me foolproof - simple test.

Log in
Name

Password

 

Created by ZopeOrgSite . Last modified 2000-10-12 20:22:34.

------HTML----- <form>
<input type=file name=myfileupload>
</form>
------DTML------ <dtml-if "_.len(_.getattr(myfileupload,'filename')) > 0">
    file uploaded
<dtml-else>
    empty file form
</dtml-if>