ASP4 and File Uploads

johnd on 2010-02-15T21:58:22

Handle File Uploads with ASP4

ASP4 is a web application environment for Perl. It's pretty easy to install and start using.

Perhaps the simplest way to handle a file upload would look something like this:

<%
  my $upload = $Request->FileUpload('fieldname');
  $upload->SaveAs( $Server->MapPath('/uploads/' . $upload->FileName );
  my $url = "/uploads/" . $Server->MapPath($upload->Filename);
%>

Thanks for uploading!

Your file is located HERE.