Question

Hey I was wondering if there were any way to upload images in ASP? I am working on my school's server and I don't really know what is installed and what isn't I Googled a little and came up with "Persits.Upload.1" I tried to instantiate the object with this line:

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

It gave me this error,

Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed

Am I to assume the component is not installed on the server and/or what should I do for uploading images?

Thanks

Was it helpful?

Solution

Sounds like it couldn't load the class, my ASP very rusty though.

That component is a commercial one, so unless someone has paid for it, you probably don't have it installed.

I have used free asp upload http://www.freeaspupload.net/ a few times, although it was a while a go, that might be a reasonably easy option for you.

OTHER TIPS

File upload is a built in part of html and you can process it in asp without any custom compents. Here is some more information: http://www.4guysfromrolla.com/webtech/LearnMore/Upload.asp

This is part of the ASPJpeg library, which needs to be purchased (From Persits.com).

I have used this library to upload multiple items in the past.

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

If it's for educational purposes it may be worth droping Persits an email to see if they will give you a free license.

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

Good luck

Will Rickards' link is good. You will also need permissions for the IUSR to create files in whatever directory you are uploading too.

IIS (6 I think?) comes with a limit of 200K for uploading files. Only the server admin can change it to allow more.

If you can get your schools server to install COM objects, there are a number of free uploading tools that make things very easy.

I have older classic ASP apps that use the Persits Software AspUpload component. It works great if you need to resize images, get image dimensions, etc., during the upload process. It is a component you need to purchase and it needs to be installed on the Web server in order for it to work. It is not a core part of ASP.

by the way, you have a typo in your code, is

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

and not

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

I bet that if you correct this, the code will go smooth :D

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top