Solved

Uploading files via ASP

Posted on 1998-07-06
6
177 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

726 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