Re: silva-2.2: comments
Kit BLAKE <[email protected]> Tue, 9 Jun 2009 08:31:54 +0200
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Message-ID | <[email protected]> |
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 >>>> the >>>> 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 >>> path. >> >> i have a silva code source for uploading files (original by benno) >> and >> there i don't have to re-enter the file again when i forget a >> required >> 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 -- Kit BLAKE · Infrae · http://infrae.com/ + 31 10 243 7051