Solved

Uploading files via ASP

Posted on 1998-07-06
6
178 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
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…

707 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