Solved

Uploading files via ASP

Posted on 1998-07-06
6
173 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now