Perl, Apache2::Request, and uploading files07 Dec 2009
So I started writing a netboot server for floor. I decided to start writing the web interface first, and learn myself some mason, web perl, and database-y things. Also found some things out about the process that were a little undocumented/misdocumented (now a word).
The biggest issue (so far) was file uploads. So here’s a quick tutorial on how to do file uploads with perl, with mason.
In index.html (or wherever your form HTML code lives):
In your httpd.conf:
I intentionally skipped over error handling code and all of the httpd.conf config for the sake of brevity (I did say brief tutorial). Since I need to allow for larger file sizes than Apache does by default (64MB), I spent quite some time looking for that Apache directive.
Hopefully this saves someone some time.