Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > cannot set the value in the html <input type="file">??

Reply
Thread Tools

cannot set the value in the html <input type="file">??

 
 
Matt
Guest
Posts: n/a
 
      10-15-2004
If I do the following, the browse text box still cannot see
C:/hello world/test.txt.

<input type="file" name="fileName" value="C:/hello world/test.txt" size=80>


Any ideas? and workarounds to this problem? thanks!!
 
Reply With Quote
 
 
 
 
brucie
Guest
Posts: n/a
 
      10-15-2004
In alt.html Matt said:

> If I do the following, the browse text box still cannot see
> C:/hello world/test.txt.
> <input type="file" name="fileName" value="C:/hello world/test.txt" size=80>


http://www.cs.tut.fi/~jkorpela/forms/file.html#value

--


v o i c e s
 
Reply With Quote
 
 
 
 
nice.guy.nige
Guest
Posts: n/a
 
      10-16-2004
While the city slept, brucie (****@usenetshit.info) feverishly typed...

> In alt.html Matt said:
>
>> If I do the following, the browse text box still cannot see
>> C:/hello world/test.txt.
>> <input type="file" name="fileName" value="C:/hello world/test.txt"
>> size=80>

>
> http://www.cs.tut.fi/~jkorpela/forms/file.html#value


Interesting article.

I considered using something like this on a site I was recently working on.
The users can post memo's to be viewed by other users, and they can upload
an "attached" file to go with it. The user has the option to modify any
memo's they have posted, and I originally thought it could be useful to
populate the file input field with the original file they uploaded. Then I
realised that - apart from any other considerations - the original file
could quite easily have been moved from its previous location, or even
deleted altogether. Furthermore, it could have been modified into a version
they don't want to share, and would then be uploaded against their will
unless they specifically removed it. Quickly decided it would be a much
better idea to just let the user select which file they want to send, if
any.

Cheers,
Nige

--
Nigel Moss
http://www.nigenet.org.uk
Mail address not valid. , take the DOG. out!
In the land of the blind, the one-eyed man is very, very busy!


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date value set to current datetime, after recall the date value is null moonhk Java 5 10-11-2006 04:45 AM
Set a value in the opener window doesn't really set it? Danny & Noemi Shafir Javascript 0 09-10-2006 07:13 AM
How to set value of a SqlDataSource parameter in HTML code? K B ASP .Net 2 03-30-2006 10:03 AM
cannot set the value in the html <input type="file">?? Matt Javascript 2 10-20-2004 02:34 PM
mx.DateTime.Error: cannot convert value to a time value Sorisio, Chris Python 1 04-25-2004 03:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57