Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Problem uploading file data using CGI

by poj (Priest)
on Mar 17, 2013 at 19:26 UTC ( #1023933=note: print w/ replies, xml ) Need Help??


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


Comment on Re: Problem uploading file data using CGI
Download Code
Replies are listed 'Best First'.
Re^2: Problem uploading file data using CGI
by dougconran (Initiate) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1023933]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2015-07-30 09:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls