Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
VBScript to upload file to Server from HTML Form?
Old 10-07-2004, 08:31 PM ASP VBScript to upload file to Server from HTML Form?
Junior Talker

Posts: 1
Trades: 0
I have a HTML form created that gives the ability to browse for a file and then upload it. I am stuck on creating the VBScript that actually will take it and save it to the specified directory on the server. Can anyone give me some pointers on how to do this?
My form looks like this:

<form action="http://10.30.61.252/upload.asp"
enctype="multipart/form-data" method="post">
<p>
Personal Firewall Deployment Questionnaire
</p>
<p>
Please browse to the location of the Questionnaire to upload:

<input type="file" name="datafile" size="40">
</p>
<p>
<input type="submit" value="Send">
</p>
</form>

I need to create the upload.asp page that has the VBScript in it to take the file once submitted from the form and write it to D:\SOC\Documents\PFW\Questionaire

Any pointers appreciated. I have never used VB before, I am very new to just HTML.

Thanks.

Last edited by jpkennedy79; 10-07-2004 at 08:46 PM..
jpkennedy79 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-08-2004, 06:37 AM
Ultra Talker

Posts: 377
Trades: 0
Do you really need to use VB??? I can advice you how to do it in PHP, but VB is not my area... maybe someone else??
__________________
andrews_john

Please login or register to view this content. Registration is FREE
andrews_john is offline
Reply With Quote
View Public Profile Visit andrews_john's homepage!
 
Old 10-08-2004, 06:43 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Stick with VB.

You just need to make sure an ASP Upload component is installed on your server. The one the vast majority of people use is ASPUpload, and I think it's free or they have a free version or something.

Other than that, do a google search for ASP Upload, there's also a number of 'pure' scripts (that don't use components) that you should be able to use.


- Mina
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 10-08-2004, 06:48 AM
labintador's Avatar
Skilled Talker

Posts: 96
Trades: 0
I dont know how it is in asp but in php is pretty easy, you may wanna download some asp codes from http://www.planet-source-code.com.
labintador is offline
Reply With Quote
View Public Profile
 
Old 10-08-2004, 12:37 PM
pencer's Avatar
Extreme Talker

Posts: 179
Location: Nottingham UK
Trades: 0
Most hosting companies have asp upload components installed on their servers so you can use the many free scripts out there.

I'd check which one your host uses then try that.

Heres a few of the common ones:

http://www.aspsmart.com/aspSmartUpload
http://www.dundas.com/products/other...r&Body=ASP.htm
http://www.aspupload.com/
pencer is offline
Reply With Quote
View Public Profile Visit pencer's homepage!
 
Reply     « Reply to VBScript to upload file to Server from HTML Form?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.67844 seconds with 12 queries