I have a mod_perl module that I wrote for mod_perl 1.x that would accept
an image upload from VBA script running under Microsoft Access. I then
converted it to use mod_perl 2.0.1 and Apache2::Upload 2.0.5. It seems to
work fine using a web browser, but it doesn't appear to like my upload
from the VBA script. The error message I get from the Apache2::Upload is
"End of file found."
I have dumped the various posts in hopes to find a discrepancy, but I have
not found anything different between the two other then the web browser is
uploading using binary ... and the VBA script uses base64. Listed below
is the various headers and body from the VBA post. Can anyone spot an
issue in my multpart/form-data construction? Anyone have suggestions?
Headers:
Content-Type: multipart/form-data; boundary=AaB03x
Content-Length: 3543
Accept: */*
User-Agent: Mozilla/4.0 (compatible; Win32; WinHttp.WinHttpRequest.5)
Host: devel.eecs.ku.edu
Connection: Keep-Alive
Body:
--AaB03x\r\nContent-Disposition: form-data; name="image";
filename="C:\\Documents and Settings\\dhageman\\My
Documents\\jayhawk.png"\r\nContent-Type:
image/jpeg\r\nContent-Transfer-Encoding:
base64\r\n\r\niVBORw0KGgoAAAANSUhEUgAAADcAA
<snip Base64 Encoded data/>
ggRIAAAAASUVORK5CYII=\r\n--AaB03x--
Any insight would be appreciated!
//========================================================\\
|| D. Hageman <dhageman@dracken.com> ||
\\========================================================//