ScoobyNet.com - Subaru Enthusiast Forum

ScoobyNet.com - Subaru Enthusiast Forum (https://www.scoobynet.com/)
-   Computer & Technology Related (https://www.scoobynet.com/computer-and-technology-related-34/)
-   -   Web site file upload (https://www.scoobynet.com/computer-and-technology-related-34/491075-web-site-file-upload.html)

JackClark 09 February 2006 11:09 AM

Web site file upload
 
I'd like to enable file upload on my web site, I'm told I have php, asp and perl enabled but know bugger all about any of them. What's the easiest approach? Nothing fancy just something other than giving out a FTP password.

TIA

SJ_Skyline 09 February 2006 11:24 AM

Your host needs a component on the server like aspupload from http://www.persits.com/ or fileup from http://www.softartisans.com/ - chances are they may already have one.

You can then call these components from within web pages. If you are talking about large numbers of files then granting limited FTP may be a better solution.

SJ_Skyline 09 February 2006 11:31 AM

http://www.pensaworks.com/prg_com.asp offers a script to run on your webspace to see what components are installed. :)

JackClark 09 February 2006 11:36 AM

My pages are hosted by Fasthost, support there don't seem to have a clue. From their pages these modules are listed

ASP modules included:

CDONTS and CDOSYS
JMail
ASP
ASP JPEG
MDAC 2.8 and ADO.

But again they mean nothing to me.

JackClark 09 February 2006 11:43 AM


Originally Posted by SJ_Skyline
http://www.pensaworks.com/prg_com.asp offers a script to run on your webspace to see what components are installed. :)

Nice one I have Persits - ASPUpload installed. Will have a dig around their web page.

JackClark 09 February 2006 12:44 PM

Some days I just love Scoobynet. Upload now working :D

SJ_Skyline 09 February 2006 12:48 PM

:thumb: good stuff :)

JackClark 09 February 2006 01:17 PM

Might have to change hosts, bloody Fasthosts only allow a 50k file upload!

Dream Weaver 09 February 2006 01:51 PM

ASP Jpeg is very cool as well if you're uploading images - can shrink them, crop them, create thumbnails etc.

Persits and ASPUpload are both very cool.

JackClark 09 February 2006 02:10 PM

I'll look into doing something with the uploaded files next - pretty chuffed I managed to get them there. The 51k limit was my fault, but there is a 15 second limit so to upload a large file you need a fast connection.

SJ_Skyline 09 February 2006 04:55 PM

Not sure but you may be able to use server.ScriptTimeout = x where x is time in seconds to help prevent timeout...

JackClark 09 February 2006 05:04 PM

Sounds good, where do I use that?

Dream Weaver 09 February 2006 07:06 PM

Just put it in the header for your upload script.

e.g.:

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

Server.ScriptTimeout = 1000

Upload.OverwriteFiles = True

Count = Upload.SaveVirtual("/files/")

JackClark 09 February 2006 10:37 PM

Nice one, I'll give it a go.

JackClark 10 February 2006 10:08 AM


Originally Posted by Dream Weaver
Server.ScriptTimeout = 1000

Genius! It seems to have worked. Chuffed, thanks both of you.

Jack


All times are GMT +1. The time now is 05:55 AM.


© 2024 MH Sub I, LLC dba Internet Brands