diff options
author | John Naegle <john.naegle@goodmeasures.com> | 2015-03-02 14:29:53 -0600 |
---|---|---|
committer | John Naegle <john.naegle@goodmeasures.com> | 2015-03-09 12:42:39 -0500 |
commit | 73315617871cb89114a2ccb0815e7964d5c44539 (patch) | |
tree | c312c4b65e379af866f8a7ff21b97e2fbe0c1f6b /test/multipart | |
parent | 1a43de5b0282426859ca6ad4e7ae8bb2553f2b78 (diff) | |
download | rack-73315617871cb89114a2ccb0815e7964d5c44539.tar.gz |
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
Diffstat (limited to 'test/multipart')
-rw-r--r-- | test/multipart/three_files_three_fields | 31 |
1 files changed, 31 insertions, 0 deletions
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--
|