SunQuest
 
           Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
 
Unread ASP Free Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #16  
Old December 4th, 2006, 08:24 PM
dabrams dabrams is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 46 dabrams User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 12 m 8 sec
Reputation Power: 2
Hey Shadow Wizard, im kind of a beginner and just happend to come across the sample, i love your uploader. But when i am testing the code i get an error stating :
Microsoft VBScript runtime error '800a004c'

Path not found

/flextemp2/ShadowUploader.asp, line 283


I bascailly just want to upload .doc files to a database i've created that is located on the server. Is there anything else i need to change with the code to make sure it goes to the server and to the database? location is stuartabrams.com/flextemp2/apply2.asp
Thanks N Advance

Reply With Quote
  #17  
Old December 5th, 2006, 01:17 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information.
 
Join Date: Sep 2004
Location: Israel
Posts: 26,608 Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)  Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 4 Days 12 h 53 m 47 sec
Reputation Power: 1400
hi and welcome to the forum!

sorry, but my uploader does not support uploading into database.
it can only save the uploaded files as files on the server disk.
you can grab those files and write their contents to the database
later in the code though so if you prefer to stick with my uploader
I can guide you - first step is to save the uploaded file.
for this, please post your code where you call SaveToDisk method
and I'll see what you're doing wrong.

Reply With Quote
  #18  
Old January 18th, 2007, 06:39 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information.
 
Join Date: Sep 2004
Location: Israel
Posts: 26,608 Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)  Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 4 Days 12 h 53 m 47 sec
Reputation Power: 1400
thread has been cleaned again, see the first post for the
list of related threads where the posts have been moved.

Reply With Quote
  #19  
Old January 18th, 2007, 10:55 PM
baseballdude_'s Avatar
baseballdude_ baseballdude_ is offline
Expert Learner
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2005
Location: Wisconsin
Posts: 1,853 baseballdude_ User rank is Sergeant Major (2000 - 5000 Reputation Level)baseballdude_ User rank is Sergeant Major (2000 - 5000 Reputation Level)baseballdude_ User rank is Sergeant Major (2000 - 5000 Reputation Level)baseballdude_ User rank is Sergeant Major (2000 - 5000 Reputation Level)baseballdude_ User rank is Sergeant Major (2000 - 5000 Reputation Level)baseballdude_ User rank is Sergeant Major (2000 - 5000 Reputation Level)  Folding Points: 22104 Folding Title: Starter FolderFolding Points: 22104 Folding Title: Starter Folder
Time spent in forums: 1 Week 5 Days 9 h 18 m 15 sec
Reputation Power: 45
Send a message via AIM to baseballdude_ Send a message via MSN to baseballdude_ Send a message via Yahoo to baseballdude_ Send a message via Google Talk to baseballdude_
It would be possible to get it to work though, if it was modified to insert into the db as a BLOB type...wouldn't it? lol

Reply With Quote
  #20  
Old April 27th, 2007, 09:36 AM
rwssoccer1 rwssoccer1 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 5 rwssoccer1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 36 m 13 sec
Reputation Power: 0
how do i stop ot from adding "uploads" to the name of the file?

Reply With Quote
  #21  
Old April 28th, 2007, 09:28 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information.
 
Join Date: Sep 2004
Location: Israel
Posts: 26,608 Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)  Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 4 Days 12 h 53 m 47 sec
Reputation Power: 1400
it's not adding anything to the name of the file.
by default my script will save the file using its original name
and I've added the option to decide the name yourself.

"uploads" is the name of the folder in which the file
is being saved and you can change this to whatever folder
name you want. you can also save the file to the same folder
as the upload script, saving the files to seperate folder is not
must be.

Reply With Quote
  #22  
Old April 28th, 2007, 11:17 PM
rwssoccer1 rwssoccer1 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 5 rwssoccer1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 36 m 13 sec
Reputation Power: 0
Quote:
Originally Posted by Shadow Wizard
it's not adding anything to the name of the file.
by default my script will save the file using its original name
and I've added the option to decide the name yourself.

"uploads" is the name of the folder in which the file
is being saved and you can change this to whatever folder
name you want. you can also save the file to the same folder
as the upload script, saving the files to seperate folder is not
must be.


well for some reason it adds "uploads" to the beging of the file name. An example is if i upload a file called test.exe it uploads it to the server as uploadstest.exe

Reply With Quote
  #23  
Old April 28th, 2007, 11:19 PM
rwssoccer1 rwssoccer1 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 5 rwssoccer1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 36 m 13 sec
Reputation Power: 0
i looked again and it looks like since there was no folder called uploads it added upload to the beging of the file name. How do i set it not to use a folder then?

Reply With Quote
  #24  
Old April 29th, 2007, 03:13 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information.
 
Join Date: Sep 2004
Location: Israel
Posts: 26,608 Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)  Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 4 Days 12 h 53 m 47 sec
Reputation Power: 1400
Quote:
Originally Posted by rwssoccer1
i looked again and it looks like since there was no folder called uploads it added upload to the beging of the file name. How do i set it not to use a folder then?
to upload the file to the same location of the upload script using
the original file name, change this line:
Code:
Call objUpload.File(x).SaveToDisk(Server.MapPath("Uploads"), "")

to this:
Code:
Call objUpload.File(x).SaveToDisk(Server.MapPath("."), "")

the "." specify "current folder".

Reply With Quote
  #25  
Old June 1st, 2007, 08:59 AM
kolucoms6 kolucoms6 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 207 kolucoms6 User rank is Corporal (100 - 500 Reputation Level)kolucoms6 User rank is Corporal (100 - 500 Reputation Level)kolucoms6 User rank is Corporal (100 - 500 Reputation Level)kolucoms6 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 18 h 25 m 24 sec
Reputation Power: 3
Worked

Reply With Quote
  #26  
Old June 18th, 2007, 03:54 PM
Xcapade Xcapade is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 11 Xcapade User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 48 m 2 sec
Reputation Power: 0
Hi Bud amazing tutorial. Is there anyway you can upload the files to a spefic folder the uploads.

For example say if the person with user_name = A uploads a file and it is stored into a folder within upload called A.

in example I would be doing

sqlText="select * from members where first_name='"&first_name &"'"
set userSet = outpostDB.Execute(sqlText)


to get users details, but how would I manipulate the following line so that I can save it to a folder already created on the server called A or username??

Call objUpload.File(x).SaveToDisk(Server.MapPath("../userSet("username")"),"")

not sure any help would be great thank you

Reply With Quote
  #27  
Old June 19th, 2007, 04:04 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information.
 
Join Date: Sep 2004
Location: Israel
Posts: 26,608 Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)  Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325325 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 4 Days 12 h 53 m 47 sec
Reputation Power: 1400
the correct syntax is this:
Code:
Call objUpload.File(x).SaveToDisk(Server.MapPath("../" & userSet("username")), "")  

Reply With Quote
  #28  
Old July 17th, 2007, 07:36 AM
davidrocastle davidrocastle is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 118 davidrocastle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 16 h 14 m 9 sec
Reputation Power: 2
Hi Shadow,

Code is brillant, quick question for you, i jus want to know when you click on a file to upload, it doesn't like uploading a file with a space in its name?

Reply With Quote