Print Page | Close Window

uploading and adding to database

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=1866
Printed Date: 28 March 2026 at 8:41am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: uploading and adding to database
Posted By: Scotty32
Subject: uploading and adding to database
Date Posted: 17 April 2003 at 4:48am

hello i asked bout this ages ago - when this forum was on V6.34

anyway i wanna know is it possable to upload a picture to my server space AND add the name of the file to a database all in no more then 2 pages (includin the form)

i use ASPUpload and i found this:

http://www.aspupload.com/codesample.html - http://www.aspupload.com/codesample.html

cept i dunno how to get it workin, as i dont quite understand the code they show

anyway can anyone help?

(PS: didnt borg get to have the forum, upload a pic and post a topic?)




Replies:
Posted By: MorningZ
Date Posted: 17 April 2003 at 1:24pm
Quote
cept i dunno how to get it workin, as i dont quite understand the code they show

its as easy as saving the two pages that they display there, adjusting the path and permissions where the files go...

-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: Scotty32
Date Posted: 17 April 2003 at 1:41pm

no, i did that and it said "bairey error" or sumfin

i had added stuff to a database above this could that be it?

would i have to access the database under the pic code? and and put "upload.form(wot ever)" instead of "request" ??

but i need the database stuff b4 the uploading cose i need to make a folder on the ID number of the Record



Posted By: MorningZ
Date Posted: 17 April 2003 at 1:51pm
first: it'll be easier to help if you typed in plain english, instead of "sumfin", "cose", and blah blah blah....

second: if you are thinking you are going to create folders on the fly, you are going to run into a huge roadblock in that when the folder gets created it won't have the proper permissions applied to allow the AspUpload component to write to there

third: when you do a "MultiPart" form, which is required for the "file" html control, the Request.Form object doesn't apply, hence the upload.form() syntax

-------------
Contribute to the working anarchy we fondly call the Internet



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net