By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,089 Members | 2,260 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,089 IT Pros & Developers. It's quick & easy.

[Twisted] how to find out filenames of uploaded files?

P: n/a
When I upload files using HTML form, i can get the contents of these
files from request.args. But how do I find out the filenames under which
the files were uploaded?

--
Frantisek Fuka
(yes, that IS my real name)
(and it's pronounced "Fran-tjee-shek Foo-kah")
----------------------------------------------------
My E-mail: fu**@fuxoft.cz
My Homepage: http://www.fuxoft.cz
My ICQ: 2745855
Jul 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Frantisek Fuka wrote:

When I upload files using HTML form, i can get the contents of these
files from request.args. But how do I find out the filenames under which
the files were uploaded?


Is this information even provided by the client? I would have thought
that the client sent only the data and the name of the form field to
which it belongs.

I haven't checked the HTTP/HTML standards though... have you?

-Peter
Jul 18 '05 #2

P: n/a
Peter Hansen wrote:
Frantisek Fuka wrote:
When I upload files using HTML form, i can get the contents of these
files from request.args. But how do I find out the filenames under which
the files were uploaded?

Is this information even provided by the client? I would have thought
that the client sent only the data and the name of the form field to
which it belongs.

I haven't checked the HTTP/HTML standards though... have you?


Yes, it's definitely provided by the client. I am using PHP application
which does just this. It's also rather well documented in HTML 4.1
specifications on w3.org (in the FORMs section).

In the meantime, I contacted the person who wrote the Twisted http
module and he told me that it's not working very well in the current
implementation and it should be fixed in March.

--
Frantisek Fuka
(yes, that IS my real name)
(and it's pronounced "Fran-tjee-shek Foo-kah")
----------------------------------------------------
My E-mail: fu**@fuxoft.cz
My Homepage: http://www.fuxoft.cz
My ICQ: 2745855
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.