RE: [Zope] No file in INPUT TYPE='file' field

2000-08-11 Thread Mabe, Brad

I love this list!  I am designing a file upload form and just started
thinking about how I am going to handle invalid filenames, no filename, etc.
Of course, rather than doing "real work" I decided to take some time and
catch up with my e-mail and viola! Here is this thread.

Thanks Peter!

-=Brad=-

-Original Message-
From: Peter Arvidsson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 10, 2000 4:07 AM
To: Alexander Chelnokov
Cc: zope
Subject: Re: [Zope] No file in INPUT TYPE='file' field


Hi

I use this code to check if the input is empty:

Exists...

To check if the input is a valid file you can store it as a temporary
variable and then make a check if the size of the object is more than 0
bytes like this:
 0">
Valid file...

I hope this helps you :)

Peter


Alexander Chelnokov skrev:
> 
> Hello All,
> 
> How to define in DTML that user put nothing into the
> field ?
> Give pls an example of code.
> 
> Best regards,
>  Alexander N. Chelnokov
> Ural Scientific Institute of Traumatology and Orthopaedics
> str.Bankovsky, 7. Ekaterinburg 620014 Russia
> ICQ: 25640913
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] No file in INPUT TYPE='file' field

2000-08-10 Thread Peter Arvidsson

Hi

I use this code to check if the input is empty:

Exists...

To check if the input is a valid file you can store it as a temporary
variable and then make a check if the size of the object is more than 0
bytes like this:
 0">
Valid file...

I hope this helps you :)

Peter


Alexander Chelnokov skrev:
> 
> Hello All,
> 
> How to define in DTML that user put nothing into the
> field ?
> Give pls an example of code.
> 
> Best regards,
>  Alexander N. Chelnokov
> Ural Scientific Institute of Traumatology and Orthopaedics
> str.Bankovsky, 7. Ekaterinburg 620014 Russia
> ICQ: 25640913
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] No file in INPUT TYPE='file' field

2000-08-10 Thread Alexander Chelnokov

Hello All,

How to define in DTML that user put nothing into the
field ?
Give pls an example of code.

Best regards,
 Alexander N. Chelnokov
Ural Scientific Institute of Traumatology and Orthopaedics
str.Bankovsky, 7. Ekaterinburg 620014 Russia 
ICQ: 25640913



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )