Hi,

I get this error:

Can't call method "fh" on an undefined value at /path/up line 7.

What's wrong with it?

*Please check the codes:*

<%args>
$upload => 0
</%args>
<%init>
use Apache2::Upload;
if ($upload) {
    my $fh = $r->upload('userfile')->fh;
}
</%init>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
    <form nctype="multipart/form-data" method="post" action="/up">
        <tr>
            <td align="left">
                <input type="file" size="40"
accept="image/gif,image/jpeg,image/jpg" name="userfile" />
                <input type="hidden" value="1" name="upload" />
            </td>
        </tr>
        <tr>
            <td>
                <input type="submit" value="Upload" id="submit"
name="submit"/>
            </td>
        </tr>
    </form>
</table>


-- 
Jack Malloy
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to