| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#17
|
||||
|
||||
|
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. |
|
#18
|
||||
|
||||
|
thread has been cleaned again, see the first post for the
list of related threads where the posts have been moved. |
|
#19
|
||||
|
||||
|
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
__________________
www.xoise.com - www.ourfreegames.com - www.playtouchgames.com - www.randomtools.net - www.xenocide-rpg.com |
|
#20
|
|||
|
|||
|
how do i stop ot from adding "uploads" to the name of the file?
|
|
#21
|
||||
|
||||
|
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. |
|
#22
|
|||
|
|||
|
Quote:
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 |
|
#23
|
|||
|
|||
|
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?
|
|
#24
|
||||
|
||||
|
Quote:
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". |
|
#25
|
|||
|
|||
|
Worked
|
|
#26
|
|||
|
|||
|
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 |
|
#27
|
||||
|
||||
|
the correct syntax is this:
Code:
Call objUpload.File(x).SaveToDisk(Server.MapPath("../" & userSet("username")), "")
|
|
#28
|
|||
|
|||
|
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? |