Re: [Zope] path of a fileupload instance

2012-11-14 Thread robert rottermann
to my knowledge, for security reason no modern browser submits the path anymore. If you need the path, you have to create your own file uploader or use a tool like uploadify (http://www.uploadify.com) I *think* javascript gets you access to the full path. robert On 11/14/2012 08:35 AM, Kees de

[Zope] path of a fileupload instance

2012-11-13 Thread Kees de Brabander
Hiya I have a form with a field for a FileUpload object, which works ok. However, in my application I want to capture the path of that file, because I want to open still other files that I know by name from that very same directory. Any idea how to do that? The REQUEST simple contains the

Re: [Zope] path of a fileupload instance

2012-11-13 Thread Kees de Brabander
Correct, but the filename attribute contains just the filename, not the path of the directory where it was uploaded from… cb On Nov 13, 2012, at 11:04 AM, Andreas Jung wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 REQUEST.yourfile.filename. The FileUpload instance has a 'filename'

Re: [Zope] path of a fileupload instance

2012-11-13 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This is subject to browser. All browser - except IE (afaik) - only submit the filename without directory information. - -aj Kees de Brabander wrote: Correct, but the filename attribute contains just the filename, not the path of the directory

Re: [Zope] path of a fileupload instance

2012-11-13 Thread Kees de Brabander
I was using IE and filename is just the file name, no directory information. So I will have to take another approach. Does a FileUpload instance have any other attributes than filename and header? On Nov 13, 2012, at 6:11 PM, Andreas Jung wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1