file upload asp-mysql database

This is a discussion on "file upload asp-mysql database" within the Classic ASP section. This forum, and the thread "file upload asp-mysql database are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices




Closed Thread
 
LinkBack (1) Thread Tools
  1 links from elsewhere to this Post. Click to view. #1  
Old Aug 13th, 2004, 14:38
New Member
Join Date: Jul 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
file upload asp-mysql database

can anyone help me, i am really stuck.

I want my form to allow the user to upload a word document into the database (mysql) and then the view page allow this document to be opened. how can i do this. is there any good tutorials.

i am using asp this is then converted (chillsoft i think?) to my sql
:mad:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Aug 16th, 2004, 08:35
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
What type of server/webserver have you got?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Aug 17th, 2004, 08:30
New Member
Join Date: Jul 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
WebFusion: they support asp chillsoft, so i am converting my access database to mysql and altering the code in the asp page. I will also need to do it for our internal server which will support asp fine, but first i need it to work on webfusion.

I am new to this so if you have any suggestions can you tell me where to paste the code etc thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Aug 17th, 2004, 10:48
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
Ive never heard of a "webfusion" server, are you talking about the hosting company called webfusion? Do you have a Sun/Cobalt RaQ server?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Aug 18th, 2004, 09:50
New Member
Join Date: Jul 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
yes web fusion is the host- sorry, im new to this - therse are the details that webfusion have:
Server software includes:
Operating system
RedHat linux 7.3
Web server
Apache 1.3.27
Scripting language
PHP 4.1.2
Scripting language
SunONE ASP 3.6.2
CGI Scripting language
Perl 5.6.1
Database server
MySQL 3.23.56
Mail server
Exim 3.36

Instead of using PHP I am converting Access to Mysql and changing the connection code on my asp page to connect into the mysql server. (Our local server uses asp so I thought it would be easier to stick to asp rather than learning php aswell). I have found tutorials on most areas of asp but cant find anthing (that is laid out easy to follow) to allow me to upload files into the database;

It is a job page: so the staff login - on the form input details into text boxes (this is where i also need them to attach the job description, and job application documents word or PDF) submit the form. the information is updated in the my sql database and the information then is updated in the view page (here users need to be able to click on a link to open the document or download it.)

thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Aug 18th, 2004, 15:17
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
I don't actually know if this is possibly with ASP over Chillisoft, so you'll have to try it out.

I assume you want the form code:
Code: Select all
<form ENCTYPE="multipart/form-data" method="POST"
action="upload.asp">
<INPUT TYPE="FILE" NAME="userfile"
SIZE="35">
<input type="hidden" name="MAX_FILE_SIZE"
value="1000000">
<input type="submit" value="Upload">
</form>
I'm not sure how this works on the ASP end? The other guys will have to help you with that.

If you can't get this working via ASP, then I can definetly tell you how to do it using PHP. You could simply have the upload script in PHP and everything else in ASP with no problems.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old Aug 19th, 2004, 09:39
New Member
Join Date: Jul 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks, I have the form created, what should the upload.asp contain??? and how does it tell the document to go into the databse?? if the upload is in php that would be fine.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old Aug 19th, 2004, 10:45
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
If you know how to do the upload in PHP, then do it in PHP!

otherwise... i found this:

<blockquote id="quote" class="ffs">quote:<hr height="1" noshade="noshade" id="quote" />
Chili!Soft ASP Spice Pack Components
The ChiliSoft Spice Pack is a group of COM components (see list, below) that handle commonly-used Web application functionality. These components make it easy to send and receive email and upload files from client browsers. We offer the following components:

Chili!Mail 1.0:
SMTP (Simple Mail Transfer Protocol) COM object used to send emails from an ASP page to an email server.
Chili!POP3 1.0:
POP3 (Post Office Protocol) COM object used to retrieve email from a mail server, using the same protocol used by most email clients.
Chili!Upload 1.0:
Used to upload files from a client (typically a Web browser) to the server and then save these files to the server's file system.
The best place to learn more about these components, and how to use them, is at ChiliSoft's own support pages - ChiliSoft Spice Pack Manual. http://www.chilisoft.com/caspdoc/30h...-SpicePack.htm

<hr height="1" noshade="noshade" id="quote" /></blockquote id="quote">
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
file, upload, aspmysql, database

Thread Tools

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 On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://webforumz.com/classic-asp/523-file-upload-asp-mysql-database.htm
Posted By For Type Date
Alice - Rechercher This thread Refback Dec 8th, 2006 08:44

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP+SQL+File Upload joshlindem PHP Forum 5 May 10th, 2008 16:48
Developing a database & upload Aso Databases 8 Nov 23rd, 2007 06:59
Upload image file to MySQL as BLOB csun PHP Forum 4 Aug 22nd, 2007 13:14
File upload djme PHP Forum 4 Jan 11th, 2006 18:25
asp file upload script having problems with MYSQL paulmcn Classic ASP 2 Oct 5th, 2005 18:45


All times are GMT. The time now is 15:57.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42