ASPUploader, how to use it?

yoke

Guppy
after checking out Persits doc about how to use this thing, i'm a bit stuck.

hopefully, someone here with more experience can point me to the right direction.

i want to use ASPuploader.
nothing fancy.
just trying to upload a small 10 Kb file.

here's my problem.
i downloaded the sample code and put it on my site.
the page loaded up correctly.
i attempted to upload a small file.
transmission seems to be working fine.
then, it said successful.

but, i can't find the file that i just uploaded!!!
where is it?
i searched all the directory but no where to be found.

i look at the source ASP code and the doc but it doesn't mention anything about where to specify the location of the uploaded file on the remote machine.

appreciated for any help.
wish PERSITS would have a forum like this. :rolleyes:

oh, here's another question.
do i need to purchase something from PERSITS?
i assumed all the components installed on JODOHOST already.
we just need to write some ASP stuff and that's it.
correct me if i'm wrong.

thanx for reading.
 
Hmm, personally I don't use a component at all to handle ASP uploads, but I suppose it's easier when the component is available...

http://www.aspupload.com/manual.html seems to have several examples:
Code:
Set Upload = Server.CreateObject("Persits.Upload")
Upload.Save "c:\upload"

This directory is not available to you, so instead you might want to use something like this:

Upload.Save Server.MapPath("../upload")

If the ASP script is in your website root, this will attempt to store the files in the directory upload directly under your FTP root (you'll have to create it), where it won't be accessible directly using HTTP.

You can also store the file somewhere where it's directly accessible of course, if you need to, but you have to be very careful with that. Make sure people cannot upload any ASP scripts or any other scripts enabled on your webpage.
 
SubSpace said:
This directory is not available to you, so instead you might want to use something like this:

Upload.Save Server.MapPath("../upload")


hey, SubSpace, thanks for the 1 liner.
it works great.
 
Back
Top