|
 |
asp_databases thread: File Browsing
Message #1 by "Brad" <insuran@m...> on Tue, 6 Jun 2000 17:11:27
|
|
I am not sure if this is database related but i think you guys can help. I
am building a website for an aircraft vendor. He wants to have an admin
portion of his site in which he can update info on planes, add and delete
planes, which i can handle no problem.. But he want to also be able to
upload pictures that are stored on his computer..
I would like to know how to add a "browse" Button in the admin section so
that a browse window will come up where he can locate the picture and then
i would like to have a button "upload" in which the page will take the file
and upload it to the websit's /images/ directory. You guys got any
ideas?? Vbscript or javascript is preferrable.. Perl and I arent the best
of friends
Thanks
Brad
Message #2 by "Ken Schaefer" <ken.s@a...> on Wed, 7 Jun 2000 11:15:32 +1000
|
|
The bit you descibe can be done with plain HTML - go and look it up, it's
just a particular form element.
HINT: <input type="file" enctype="multipart/form-data"....>
Only works in NN v3+ and IE v4 +
You'll need a component to handle the binary data stream at the server end.
Look for SAFileUp or similar.
Cheers
Ken
----- Original Message -----
From: "Brad"
To: "ASP Databases" <asp_databases@p...>
Sent: Tuesday, June 06, 2000 5:11 PM
Subject: [asp_databases] File Browsing
> I am not sure if this is database related but i think you guys can help.
I
> am building a website for an aircraft vendor. He wants to have an admin
> portion of his site in which he can update info on planes, add and delete
> planes, which i can handle no problem.. But he want to also be able to
> upload pictures that are stored on his computer..
>
> I would like to know how to add a "browse" Button in the admin section so
> that a browse window will come up where he can locate the picture and then
> i would like to have a button "upload" in which the page will take the
file
> and upload it to the websit's /images/ directory. You guys got any
> ideas?? Vbscript or javascript is preferrable.. Perl and I arent the
best
> of friends
>
> Thanks
> Brad
>
Message #3 by "Joycelyn Yeo" <gummy_san@h...> on Tue, 06 Jun 2000 18:12:20 PDT
|
|
you just have to add the html tag
<input type="file" name="file">
thats it!
Good luck!
Joycelyn
>From: "Brad"
>Reply-To: "ASP Databases" <asp_databases@p...>
>To: "ASP Databases" <asp_databases@p...>
>Subject: [asp_databases] File Browsing
>Date: Tue, 6 Jun 2000 17:11:27
>
>I am not sure if this is database related but i think you guys can help. I
>am building a website for an aircraft vendor. He wants to have an admin
>portion of his site in which he can update info on planes, add and delete
>planes, which i can handle no problem.. But he want to also be able to
>upload pictures that are stored on his computer..
>
>I would like to know how to add a "browse" Button in the admin section so
>that a browse window will come up where he can locate the picture and then
>i would like to have a button "upload" in which the page will take the file
>and upload it to the websit's /images/ directory. You guys got any
>ideas?? Vbscript or javascript is preferrable.. Perl and I arent the best
>of friends
>
>Thanks
>Brad
>
Message #4 by =?Windows-1252?Q?Gonzalo_Ruiz_de_Villa_Su=E1rez?= <gonzalo.ruizdevilla@a...> on Wed, 7 Jun 2000 12:03:55 +0200
|
|
To handle the binary data at the server end try,
reading this article of Philippe Collignon
http://www.asptoday.com/articles/20000316.htm
Hope it helps.
Gonzalo
-----Mensaje original-----
De: Ken Schaefer
Enviado el: miércoles, 07 de junio de 2000 3:16
Para: ASP Databases
Asunto: [asp_databases] Re: File Browsing
The bit you descibe can be done with plain HTML - go and look it up, it's
just a particular form element.
HINT: <input type="file" enctype="multipart/form-data"....>
Only works in NN v3+ and IE v4 +
You'll need a component to handle the binary data stream at the server end.
Look for SAFileUp or similar.
Cheers
Ken
----- Original Message -----
From: "Brad"
To: "ASP Databases" <asp_databases@p...>
Sent: Tuesday, June 06, 2000 5:11 PM
Subject: [asp_databases] File Browsing
> I am not sure if this is database related but i think you guys can help.
I
> am building a website for an aircraft vendor. He wants to have an admin
> portion of his site in which he can update info on planes, add and delete
> planes, which i can handle no problem.. But he want to also be able to
> upload pictures that are stored on his computer..
>
> I would like to know how to add a "browse" Button in the admin section so
> that a browse window will come up where he can locate the picture and then
> i would like to have a button "upload" in which the page will take the
file
> and upload it to the websit's /images/ directory. You guys got any
> ideas?? Vbscript or javascript is preferrable.. Perl and I arent the
best
> of friends
>
> Thanks
> Brad
>
|
|
 |