Hi Massimo,
the problem happened with 2.1. I have just upgraded to 2.3.2 but I do not see any change. Below are the request/response headers for the upload form that results in validation failure. I tried to upload You can see that I tried to upload an image (file size is 1,127,797 bytes), for that image request Content-Length is 1,128,340 bytes but response is 3,445,392 bytes (3 times large than request?)
Let me know if I can provide more info for you.
Thanks,
Andy
Request URL:
Request Method:
POST
Status Code:
![200 OK]()
200 OK
- Request Headers
- POST /famtreepub/default/index HTTP/1.1
Host: 127.0.0.1:8000
Connection: keep-alive
Content-Length: 1128340
Cache-Control: max-age=0
Origin: http://127.0.0.1:8000
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarycW2MnFYBYRq4arq9
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://127.0.0.1:8000/famtreepub/default/index
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: session_id_admin=127.0.0.1-33b3e06f-388e-4f4b-ab89-a106d87c67c0; session_id_famtreepub=127.0.0.1-06dbb028-2086-4cc3-a568-77f069922d8c
- Request Payload
------WebKitFormBoundarycW2MnFYBYRq4arq9
Content-Disposition: form-data; name="input_file"; filename="drevo.jpg"
Content-Type: image/jpeg
------WebKitFormBoundarycW2MnFYBYRq4arq9
Content-Disposition: form-data; name="output_type"
OpenDocument
------WebKitFormBoundarycW2MnFYBYRq4arq9
Content-Disposition: form-data; name="_formkey"
23e17674-c5fc-43a4-92e5-840cdd0598d4
------WebKitFormBoundarycW2MnFYBYRq4arq9
Content-Disposition: form-data; name="_formname"
input_data/create
------WebKitFormBoundarycW2MnFYBYRq4arq9--
- Response Headers
- HTTP/1.1 200 OK
X-Powered-By: web2py
Set-Cookie: session_id_famtreepub=127.0.0.1-06dbb028-2086-4cc3-a568-77f069922d8c; Path=/
Expires: Sun, 23 Dec 2012 16:42:55 GMT
Pragma: no-cache
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Content-Type: text/html; charset=utf-8
Date: Sun, 23 Dec 2012 16:42:55 GMT
Server: Rocket 1.2.6 Python/2.7.2
Content-Length: 3445392
Connection: keep-alive