|
-
Jun 6th, 2005, 06:40 AM
#1
Input file field value [Resolved]
I've heard that you cannot use javascript to change the .value of an input field of type "file".
Is this true? If not, can someone show me how it's done?
Last edited by mendhak; Jun 7th, 2005 at 02:15 AM.
-
Jun 6th, 2005, 12:59 PM
#2
Re: Input file field value
Nope you cannot.
You cannot, because doing that would be insecure. I could steal any file from your computer automatically without you even knowing about it.
Cheers,
RyanJ
-
Jun 7th, 2005, 02:14 AM
#3
Re: Input file field value
That reasoning had escaped me. Thanks very much.
-
Jun 7th, 2005, 12:27 PM
#4
Re: Input file field value
 Originally Posted by mendhak
That reasoning had escaped me. Thanks very much.
Your welcome.
not many people actually think fo that way bit if you were using a PHP script and you could change the value then you could literally upload any file you liked, password files etc 
Cheers,
RyaNj
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|