Re: [Zope] Image Upload

2001-01-17 Thread Dieter Maurer

Fabio da Silva Santos writes:
 > I'm trying to insert an image in Zope by uploading it in an HTML 'file'
 > field, using the following validation code:
 > 
 >  _.None">
 >
 > 
You could try:

   
 
   

This tests for a non-empty filename.


Dieter

___
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] Image Upload

2001-01-17 Thread Fabio da Silva Santos


Hi,

I've changed the code just the way you've told me to:

> 
>
> 

but it still runs the code within dtml-if.

thanks,
 



Emmanuel Philippot wrote:
> 
> My HTML file uploading an image contains this :
> 
> 
> 
> When i submit this HTML page , I call another DTML document containing the following 
>lines
> :
> 
> 
>
> 
> 
> That's all
> 
> but i don't know if the banners object image must already exist under Zope.
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Fabio da Silva Santos
> Sent: Tuesday, January 16, 2001 5:44 PM
> To: [EMAIL PROTECTED]
> Subject: [Zope] Image Upload
> 
> Hi there,
> 
> I'm trying to insert an image in Zope by uploading it in an HTML 'file'
> field, using the following validation code:
> 
>  _.None">
>
> 
> 
> When I submit an empty 'file' field, the dtml-call is invoked just the
> same, and I get an error message saying that the field is empty;
> when I check what's in REQUEST I see this:
> 
> banner_1 
> 
> Therefore, I reckon there must be something wrong with this
> validation routine.  What should I do in order to run it properly?
> 
> Thanks,
> 
> ___
> 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] Image Upload

2001-01-16 Thread Fabio da Silva Santos

Emmanuel Philippot wrote:
> 
> My HTML file uploading an image contains this :
> 
> 
> 
> When i submit this HTML page , I call another DTML document containing the following 
>lines
> :
> 
> 
>
> 
> 
> That's all
> 
> but i don't know if the banners object image must already exist under Zope.
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Fabio da Silva Santos
> Sent: Tuesday, January 16, 2001 5:44 PM
> To: [EMAIL PROTECTED]
> Subject: [Zope] Image Upload
> 
> Hi there,
> 
> I'm trying to insert an image in Zope by uploading it in an HTML 'file'
> field, using the following validation code:
> 
>  _.None">
>
> 
> 
> When I submit an empty 'file' field, the dtml-call is invoked just the
> same, and I get an error message saying that the field is empty;
> when I check what's in REQUEST I see this:
> 
> banner_1 
> 
> Therefore, I reckon there must be something wrong with this
> validation routine.  What should I do in order to run it properly?
> 
> Thanks,
> 
> ___
> 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] Image Upload

2001-01-16 Thread Fabio da Silva Santos


Hi there,

I'm trying to insert an image in Zope by uploading it in an HTML 'file'
field, using the following validation code:

 _.None">
   


When I submit an empty 'file' field, the dtml-call is invoked just the
same, and I get an error message saying that the field is empty; 
when I check what's in REQUEST I see this:

banner_1 

Therefore, I reckon there must be something wrong with this
validation routine.  What should I do in order to run it properly?

Thanks,

___
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 )