http://www.perlmonks.org?node_id=1023933


in reply to Problem uploading file data using CGI

What is the name of the file input tag, is it 'field_name' or perhaps 'mtdata' ?

<input type="file" name="????" >

poj

Replies are listed 'Best First'.
Re^2: Problem uploading file data using CGI
by dougconran (Novice) on Mar 17, 2013 at 20:19 UTC
    The filename is actually coming in in 2 places. The first is as part of the binary data
    Content-Disposition: form-data; name="mtdata"; filename="filename" Content-Type: application/octet-stream ... binary data ...
    The second is as a text field
    Content-Disposition: form-data; name="mtfilename" filename