For continued disscussion on this topic : Windows Explorer
peelola
06-29-2000, 02:12 PM
In one of my forms I wish the user's to be able to attach files to be be submitted, much in the way hotmail allows you to do so.
Anyone got an idea?
Cheers
Peelola
Vincent Puglia
06-29-2000, 05:14 PM
Hi peelola,
As far as I know, you cannot "attach" files with javascript. But...
If you are asking how a user can upload a file to your site...
1) <input type='file' name='beamMeUp' size="20" maxlength ='256' value='images/pic1.gif'>
2) The user will be presented with a textbox with the "value" entered (and sometimes a 'browse' button -- I forget when).
3)The problems:
a) your users need write rights on the server. If they don't have them, they can't upload anything.
b) if they have rights, they can upload anything
Hope this helps
Vinny
gzazJim
06-29-2000, 05:35 PM
Howdy Peelola!
What Vincent said is true - if you want to add a "Browse" button directly on your webpage, use the following:
<FORM METHOD='POST' ENCTYPE='multipart/form-data' ACTION='enter your post-submission page here'>
<INPUT TYPE=FILE NAME='fileName'>
<INPUT TYPE=SUBMIT VALUE='Upload!'>
</form>
Also as Vincent said - it's REALLY easy for someone to upload a TON of garbage, or worse yet, a virus, in this way - be sure to password protect the upload page, and also be sure of your security as regards who can upload.
Good Luck,
Jim
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.