verify whether html <input type=file... is empty
Hi! Don't know if it is really a zope question, but I have a problem, verifying if e.g. input <INPUT TYPE="file" NAME="image_1" SIZE="50"> is empty or not using <dtml-unless " REQUEST[ 'image_1']=='' "> <dtml-call "manage_addImage( id=imageId, file=REQUEST[ image_1], REQUEST=REQUEST )"> </dtml-unless> well, I think the <input type=file... is not a string, but what I want to test is if the user put in the filename and not whether the really existing file is empty, so how could aI do it? I would appreciate any hints Thank you in advance Andrey
Andrei Belitski wrote:
Hi! Don't know if it is really a zope question, but I have a problem, verifying if e.g. input <INPUT TYPE="file" NAME="image_1" SIZE="50">
to test is if the user put in the filename and not whether the really existing file is empty, so how could aI do it?
<dtml-if image_1> ...do your stuff... </dtml-if> HTH, -- Tim Cook, President -- Free Practice Management,Inc. | http://www.FreePM.com Office: (901) 884-4126 "When the government fears the People, that is Liberty. When the People fear the Government, that is tyranny." ~~ Thomas Jefferson
participants (2)
-
Andrei Belitski -
Tim Cook