Download images using classic ASP

Hey, I was wondering if there is a way to upload images to ASP? I am working on my school server, and I really do not know what is installed and what is not, I searched for Googled a bit and came up with "Persits.Upload.1". I tried to instantiate the object using this line:

Set Upload = Server.CreateObject("Persits.Upload.1")

He gave me this mistake

Server object error "ASP 0177: 800401f3"
Server Error .CreateObject

Is it possible to assume that the component is not installed on the server and / or what should I do to upload images?

thanks

+4
source share
7 answers

It seems like he was unable to load the class, but ASP is very rusty.

This component is commercial, so if someone did not pay for it, you probably did not install it.

I used the free asp upload http://www.freeaspupload.net/ several times, although it was time, but it would be a pretty easy option for you.

+3
source

File uploading is a built-in part of html and you can process it in asp without any custom components. Here's more info: http://www.4guysfromrolla.com/webtech/LearnMore/Upload.asp

+2
source

This is part of the ASPJpeg library you must purchase (From Persits.com).

I have used this library to load several items in the past.

To upload a single file, you can use <INPUT type=file name=filename> . This is just HTML, but it should work in all browsers.

+1
source

If this is for educational purposes, it may be worth dropping the Persits letter to see if they will give you a free license.

They offer a 30-day free trial on their website.

Good luck.

0
source

Will the Rickards link be good. You will also need permissions for IUSR to create files in any directory that you download.

IIS (6, I think?) Comes with a 200K limit for file uploads. Only the server administrator can change it to allow more.

If you can install servers for installing COM objects, there are many free download tools that simplify the process.

0
source

I have old classic ASP applications that use the Persits Software AspUpload component. It works great if you need to resize images, get image sizes, etc. During the boot process. This is the component you need to purchase and must be installed on the web server for it to work. This is not the main part of ASP.

0
source

By the way, you have a typo in your code,

 Server.CreateObject("Persist.Upload.1") 

but not

 Server.CreateObject("Persits.Upload.1") 

I am sure that if you fix this, the code will be smooth: D

0
source

All Articles