No; it would be a bit of a security issue if you could.  (Your page could
select any file from a user's machine and intiate an upload.)

What I did in a previous project was simply display the file name and path
near the upload control, with instructions to drag/drop or copy/paste the
value in the control.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 8:33 AM
To: CF-Talk
Subject: Need help for input type="file"





Hi,
Is there a way to dynamic assign value for input field type="file" without
click
the browse button?

here is an example


<form action="/cgi-bin/upload" method="post"
enctype="multipart/form-data">
<input type="hidden" name="username" value="xxxx"><br>
<input type="hidden" name="password" value="xxxx"><br>
<input type="file" name="FileName">


<input type="button" value="View Value"
onClick="alert(this.form.FileName.value)">
</form>
<script>
document.forms[0].FileName.value= "c:\WebSite\dmcs200105040214";
alert(document.forms[0].FileName.value);
</script>


thanks for any suggestion


YC




www.atswebnet.com

-kev

~~~~~~~~~~~~~~~~~
Kevin Mansel
Web Developer
Fox Communications
[EMAIL PROTECTED]
DL : 425-649-1321
C : 425-346-7221



-----Original Message-----
From: Guy McDowell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 03, 2001 6:52 AM
To: CF-Talk
Subject: Inexpensive Hosting


G'day eh?

I'm trying to find very inexpensive CF hosting to no
avail. Something under $20 CDN is preferred. I need to
host my personal/resume site along with some CF
examples I have done.

Thought I saw someone post something about hosting for
$5.95 a month....

If there is nothing like that, then is it possible for
me to institute CF Server Express within my own
account/directory on a regular hosting package of the
WinNT variety?

Guy
www.guymcdowell.com


Archives:
http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe:
http://www.houseoffusion.com/index.cfm?sidebar=lists
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to