|
 |
asp_databases thread: upload files from asp page/form to server
Message #1 by "Thomas McMillin" <Thomas_McMillin@a...> on Mon, 10 Mar 2003 12:00:54 -0600
|
|
I have used asp/vbscript for reading/writing/displaying data from a
database, but have no experience with file upload functionality. I just
want to make a basic page where users can upload files (.jpg only).
I think I can write everything to the database for displaying the
albums, i'm just not exactly sure where to get started. Does anyone
have snippets of asp/vbscript that upload files to a server that might
help?
- TM
Message #2 by skip@f... on Tue, 11 Mar 2003 04:25:20
|
|
TM,
First, you need a file upload utility. There's quite a few available
online that you can download for free. (My favorite is Dundas.) If you're
feeling spunky, you can actually write some code to do it yourself is
ASP...
Next, you need a table with a BLOB ("binary" in SQL Server) field,
a "content-type" field, and a "filename" field.
Then, you need to modify your HTML tags:
<FORM ... enctype="multipart/form-data" ...>
<INPUT ... type="file" ...>
Finally, you need to write the code that creates an instance of the upload
control (relatively painless) and copies the file to the database (just
like updating typical Recordset.Fields).
Need more details?
Skip
Message #3 by "Quita Ryder" <qryder1@m...> on Tue, 11 Mar 2003 18:05:11
|
|
Try this link on microsoft. http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/dnasdj01/html/asp0900.asp Quita
|
|
 |