At 10:04 AM 7/14/00 -0600, Dave Thomas wrote:
>Hello,
>
> Question: Why does the Apache::Request object not return an Upload
>object when
>there was a file sent.
>
> Backgroud: I have pulled the sample script from the Apache::Request
>distribution and
>used that in my handler, this instance works fine. When I try to use it
>incorporated
>with the object model developed here it closes up shop and goes home.
>
> I initialize the Apache::Request object in an init function from the
>handler. This is then
>used to display the templated html content with
>$apr->send_http_header('text/html');
>at its top. I've made certain that the Request object's address remains
>the same
>throughout this process. When I fill in the file field and submit the
>first thing that the
>script does after initializing the Request object is try to initialize
>the Upload object, this
>fails miserably with a return value of undef.
>
Most likely you're missing a
ENCTYPE="multipart/form-data"
in your FORM tag.
Hope this helps
Tobias