Re: path of a fileupload instance

Andreas Jung <[email protected]>
Newsgroups gmane.comp.web.zope.general
Organization ZOPYX Ltd & Co. KG
Message-ID <[email protected]>
-----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 where it was uploaded from? cb On Nov 13,
> 2012, at 11:04 AM, Andreas Jung wrote:
> 
> REQUEST.yourfile.filename. The FileUpload instance has a 'filename'
> attributes.
> 
> -aj
> 
> Kees de Brabander wrote:
>>>> 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 FileUpload instance.
>>>> 
>>>> _______________________________________________ Zope maillist
>>>> - [email protected] https://mail.zope.org/mailman/listinfo/zope **
>>>> No cross posts or HTML encoding!  ** (Related lists - 
>>>> https://mail.zope.org/mailman/listinfo/zope-announce 
>>>> https://mail.zope.org/mailman/listinfo/zope-dev )
>> <lists.vcf>
> 

- -- 
ZOPYX Limited         | Python | Zope | Plone | MongoDB
Hundskapfklinge 33    | Consulting & Development
D-72074 Tübingen      | Electronic Publishing Solutions
www.zopyx.com         | Scalable Web Solutions
- --------------------------------------------------
Produce & Publish - www.produce-and-publish.com


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJQon9AAAoJEADcfz7u4AZjSwsLv0Q6WXixh/gYddZObYa1O3F4
EmhCoFjfAwgFtT8WkWpTkP4l0myjOUqPdOhJvvBxPIAtqTDPu6V6YEXM5nK1loE4
Shjz3feKRsxP784arefzD1CpRiN/YQhMSn+ZYMyy/IpHV1Ypy7vsF1HJSaCY8sqm
yaItArafhVrCrrSwGxOCaUNG83w6m0X0MlEg/phCmW3Lkz4lvwcgehEuiqHGYnrE
TwpAiBnS4ucjdgR+Zkf9sSmxKkjUiBuYenHgsHZiXwDxYaXQra1NHeCrQha1DASx
EliQuhN9Qz/A+4ZiAHj9yMwrVDEeK4oCwAxBuSsIxhO48Bj9mjXm33iSkyi0L7o7
1I0DQqCKl/1Rh6gFUmBtztzAvcz/vtB5tfjZ71u9zdQARd9zX2YKkdRQnA/l+tIG
WgwbsR/Ium2xyDp9Piqfw0rGlZzLZrp3ekbAHVwdAHR7hqGUh6nXotbJVgCOjTDz
PorJJ9CA/DZ+SWHQcQXyC8wtImS6zAI=
=aN3X
-----END PGP SIGNATURE-----

_______________________________________________
Zope maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )
lists.vcf (text/x-vcard, 383 B)
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Limited
adr;quoted-printable;quoted-printable:;;Hundskapfklinge 33;T=C3=BCbingen;Baden-W=C3=BCrttemberg;72074;Germany
email;internet:[email protected]
title:CEO
tel;work:+49-7071-13841040
tel;fax:+49-7071-13841049
tel;home:+49-7071-13841041
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.