From 73315617871cb89114a2ccb0815e7964d5c44539 Mon Sep 17 00:00:00 2001 From: John Naegle Date: Mon, 2 Mar 2015 14:29:53 -0600 Subject: Only increment the opened_files counter for file inputs. If you have a large form with only one file, you can quickly hit the MultipartPartLimitError Add test for not hitting the multipart limit --- test/multipart/three_files_three_fields | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 test/multipart/three_files_three_fields (limited to 'test/multipart') diff --git a/test/multipart/three_files_three_fields b/test/multipart/three_files_three_fields new file mode 100644 index 00000000..40d88b56 --- /dev/null +++ b/test/multipart/three_files_three_fields @@ -0,0 +1,31 @@ +--AaB03x +content-disposition: form-data; name="reply" + +yes +--AaB03x +content-disposition: form-data; name="to" + +people +--AaB03x +content-disposition: form-data; name="from" + +others +--AaB03x +content-disposition: form-data; name="fileupload1"; filename="file1.jpg" +Content-Type: image/jpeg +Content-Transfer-Encoding: base64 + +/9j/4AAQSkZJRgABAQAAAQABAAD//gA+Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcg +--AaB03x +content-disposition: form-data; name="fileupload2"; filename="file2.jpg" +Content-Type: image/jpeg +Content-Transfer-Encoding: base64 + +/9j/4AAQSkZJRgABAQAAAQABAAD//gA+Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcg +--AaB03x +content-disposition: form-data; name="fileupload3"; filename="file3.jpg" +Content-Type: image/jpeg +Content-Transfer-Encoding: base64 + +/9j/4AAQSkZJRgABAQAAAQABAAD//gA+Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcg +--AaB03x-- -- cgit v1.2.1