Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Web site file upload

Thread Tools
 
Search this Thread
 
Old 09 February 2006, 11:09 AM
  #1  
JackClark
Scooby Senior
Thread Starter
 
JackClark's Avatar
 
Join Date: Dec 2000
Location: Overdosed on LCD
Posts: 20,852
Received 51 Likes on 34 Posts
Default 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
Old 09 February 2006, 11:24 AM
  #2  
SJ_Skyline
Scooby Senior
 
SJ_Skyline's Avatar
 
Join Date: Apr 2002
Location: Limbo
Posts: 21,922
Likes: 0
Received 1 Like on 1 Post
Default

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.
Old 09 February 2006, 11:31 AM
  #3  
SJ_Skyline
Scooby Senior
 
SJ_Skyline's Avatar
 
Join Date: Apr 2002
Location: Limbo
Posts: 21,922
Likes: 0
Received 1 Like on 1 Post
Default

http://www.pensaworks.com/prg_com.asp offers a script to run on your webspace to see what components are installed.
Old 09 February 2006, 11:36 AM
  #4  
JackClark
Scooby Senior
Thread Starter
 
JackClark's Avatar
 
Join Date: Dec 2000
Location: Overdosed on LCD
Posts: 20,852
Received 51 Likes on 34 Posts
Default

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.
Old 09 February 2006, 11:43 AM
  #5  
JackClark
Scooby Senior
Thread Starter
 
JackClark's Avatar
 
Join Date: Dec 2000
Location: Overdosed on LCD
Posts: 20,852
Received 51 Likes on 34 Posts
Default

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.
Old 09 February 2006, 12:44 PM
  #6  
JackClark
Scooby Senior
Thread Starter
 
JackClark's Avatar
 
Join Date: Dec 2000
Location: Overdosed on LCD
Posts: 20,852
Received 51 Likes on 34 Posts
Default

Some days I just love Scoobynet. Upload now working
Old 09 February 2006, 12:48 PM
  #7  
SJ_Skyline
Scooby Senior
 
SJ_Skyline's Avatar
 
Join Date: Apr 2002
Location: Limbo
Posts: 21,922
Likes: 0
Received 1 Like on 1 Post
Default

good stuff
Old 09 February 2006, 01:17 PM
  #8  
JackClark
Scooby Senior
Thread Starter
 
JackClark's Avatar
 
Join Date: Dec 2000
Location: Overdosed on LCD
Posts: 20,852
Received 51 Likes on 34 Posts
Default

Might have to change hosts, bloody Fasthosts only allow a 50k file upload!
Old 09 February 2006, 01:51 PM
  #9  
Dream Weaver
Scooby Regular
 
Dream Weaver's Avatar
 
Join Date: Feb 2000
Location: Lancashire
Posts: 9,844
Received 0 Likes on 0 Posts
Default

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.
Old 09 February 2006, 02:10 PM
  #10  
JackClark
Scooby Senior
Thread Starter
 
JackClark's Avatar
 
Join Date: Dec 2000
Location: Overdosed on LCD
Posts: 20,852
Received 51 Likes on 34 Posts
Default

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.
Old 09 February 2006, 04:55 PM
  #11  
SJ_Skyline
Scooby Senior
 
SJ_Skyline's Avatar
 
Join Date: Apr 2002
Location: Limbo
Posts: 21,922
Likes: 0
Received 1 Like on 1 Post
Default

Not sure but you may be able to use server.ScriptTimeout = x where x is time in seconds to help prevent timeout...
Old 09 February 2006, 05:04 PM
  #12  
JackClark
Scooby Senior
Thread Starter
 
JackClark's Avatar
 
Join Date: Dec 2000
Location: Overdosed on LCD
Posts: 20,852
Received 51 Likes on 34 Posts
Default

Sounds good, where do I use that?
Old 09 February 2006, 07:06 PM
  #13  
Dream Weaver
Scooby Regular
 
Dream Weaver's Avatar
 
Join Date: Feb 2000
Location: Lancashire
Posts: 9,844
Received 0 Likes on 0 Posts
Default

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/")
Old 09 February 2006, 10:37 PM
  #14  
JackClark
Scooby Senior
Thread Starter
 
JackClark's Avatar
 
Join Date: Dec 2000
Location: Overdosed on LCD
Posts: 20,852
Received 51 Likes on 34 Posts
Default

Nice one, I'll give it a go.
Old 10 February 2006, 10:08 AM
  #15  
JackClark
Scooby Senior
Thread Starter
 
JackClark's Avatar
 
Join Date: Dec 2000
Location: Overdosed on LCD
Posts: 20,852
Received 51 Likes on 34 Posts
Default

Originally Posted by Dream Weaver
Server.ScriptTimeout = 1000
Genius! It seems to have worked. Chuffed, thanks both of you.

Jack
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
g7prs
Member's Gallery
34
24 January 2016 06:46 PM
south_scoob
ScoobyNet General
22
03 October 2015 01:05 PM
Pro-Line Motorsport
Car Parts For Sale
2
29 September 2015 07:36 PM
shorty87
Wheels And Tyres For Sale
0
29 September 2015 02:18 PM
shorty87
Other Marques
0
25 September 2015 08:52 PM



Quick Reply: Web site file upload



All times are GMT +1. The time now is 06:42 AM.