Uploading files via ASP

Does anyone know if (and how) i can use ASP to let users upload files to a NT-based Web server?
lulleAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
sybeConnect With a Mentor Commented:
Perl, using cgi-lib.pl
======================


#!/usr/local/bin/perl4
# Copyright (c) 1996 Steven E. Brenner
# $Id: fup.cgi,v 1.2 1996/03/30 01:35:32 brenner Exp $

# de cgi-lib.pl is nodig om dit script te draaien.

require "./cgi-lib.pl";

# When writing files, several options can be set... here we just set one
# Limit upload size to avoid using too much memory

$cgi_lib'maxdata = 50000000;         

$ret = &ReadParse;


open(OUTFILE, ">upload/test.gif");
binmode (OUTFILE);
syswrite (OUTFILE, $in{'upfile'}, length $in{'upfile'});
close(OUTFILE);


# Now produce the result: an HTML page...


print &PrintHeader;
print &HtmlTop("File Upload Results");

print "$in{'upfile'}";

print "\n<P>File was uploaded<P>";


print &HtmlBot;


0
 
sybeCommented:
You need a server-side ActiveX component, one is provided by Softartisans (http://www.softartisans.com/), it is called SA-FileUp.

They offer an evaluation version, but you have to pay for the commercial version.

The evaluation version includes good examples. I could give you some code, but I don't think my code would explain more then theirs.

The good thing about it is that you can even upload files into a database (binary field). it's the only one I have seen with this possibility.

There are some other serverside ActiveX controls that do fileupload:
- Infomentum (http://www.infomentum.com/)

Also MS Site Server 3.0 has such an ActiveX control included.


0
 
lulleAuthor Commented:
Thanks for the answer.. but I need a free one that I can use... If u have some code examples I´d be a happy man...
 
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
sybeCommented:
Sorry, but I don't know about free ones.


0
 
lulleAuthor Commented:
A nice cgi-script would do to..
0
 
lulleAuthor Commented:
Thanks....I think that´ll do..
0
All Courses

From novice to tech pro — start learning today.