[Zope] Re: File uploads: filename with ';'
P. Scott DeVos
zope at savingtree.com
Thu Oct 28 10:07:16 EDT 2004
Vova wrote:
> P. Scott DeVos wrote:
>
>>It works fine for me using 2.7.3, but my nc -l -p 8080 outputs
>>differently than yours--my browser url-encodes the ';' thusly:
>>
>>User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.2)
>>Gecko/20040803
>>Accept:
>>
>
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
>
>>Accept-Language: en-us,en;q=0.5
>>Accept-Encoding: gzip,deflate
>>Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>>Keep-Alive: 300
>>Connection: keep-alive
>>Referer: http://localhost:8080/sandbox/test_zpt
>>Cookie: dtpref_rows="20"; ta_pref_cols="140"; ta_pref_rows="30";
>>dtpref_cols="100%"; tree-s="eJzT0MgpMOQKVneEA1dbda4CI67EkgJjLj0AeGcHew"
>>Authorization: Basic cHNjb3R0ZHY6ZHJiZWFnbDM=
>>Content-Type: application/x-www-form-urlencoded
>
> ^^^^^^^^^^^^^^^^^^^^^
>
>>Content-Length: 14
>>
>>filename=a%3Bb
>>
>
> When you creating form for file upload you normally sets form content type
> to "multipart/form-data":
> <form enctype="multipart/form-data" action="http://localhost:8000/"
> method="POST">
>
> Try it. You will see something like this:
>
Ah yes, I thought I had done so. I must have forgotten to click the
"Save Changes" button. It performs exactly as you say.
More information about the Zope
mailing list