In PHP I have the following code that gets a file submitted through CGI:
move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)
The file is being sent as
Content-Disposition: form-data; name="userfile"; filename="filename"
Content-Type: application/octet-stream
The file being upload is of type PNG.
How do I access the data that $_FILES is getting through perl?
I can use CGI.pm with
$query->upload("filename");
But how do I get the data that is in the "Content-Disposition" part of the header?