Solved

Uploading files via ASP

Posted on 1998-07-06
6
176 Views
Last Modified: 2013-12-25
Does anyone know if (and how) i can use ASP to let users upload files to a NT-based Web server?
0
Comment
Question by:lulle
  • 3
  • 3
6 Comments
 
LVL 28

Expert Comment

by:sybe
ID: 1858490
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
 

Author Comment

by:lulle
ID: 1858491
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
 
LVL 28

Expert Comment

by:sybe
ID: 1858492
Sorry, but I don't know about free ones.


0
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 

Author Comment

by:lulle
ID: 1858493
A nice cgi-script would do to..
0
 
LVL 28

Accepted Solution

by:
sybe earned 50 total points
ID: 1858494
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
 

Author Comment

by:lulle
ID: 1858495
Thanks....I think that´ll do..
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question