[silva-dev] silva-2.2: comments
kitblake at infrae.com
Tue Jun 9 08:31:54 CEST 2009
On 9 Jun 2009, at 05:02, Andy Altepeter wrote:
> Hi Marc,
>>> On Sunday 31 May 2009 03:55:31 pm Marc Petitmermet wrote:
>>>> uploading image:
>>>> why do i have to browse again for the image when i forgot to enter
>>>> required title?
>>> I think this is standard web behavior for file input fields. The
>>> path isn't
>>> sent to the server (that's a security issue), only the contents of
>>> the file.
>>> So unfortunately it is impossible for Silva to re-populate the image
>> i have a silva code source for uploading files (original by benno)
>> there i don't have to re-enter the file again when i forget a
>> field and it is also of input type="file". so it is possible to keep
>> the content of this field. the filename is read using:
>> filename = getattr(file, 'filename', None)
> Ah, I see what you mean now. The rendering code for this file input
> field is
> deep into the z3 internals, and at this point I have to say "it
> would be
> nice, but I don't know where to look".
Sylvain, since you've been 'down there', can you look at this? It
really is an irritating experience.
Kit BLAKE · Infrae · http://infrae.com/ + 31 10 243 7051
More information about the silva-dev