Click to See Complete Forum and Search --> : File type in IE6
amitg
May 6th, 2002, 08:36 AM
Hi
I made a webpage in which I am using <Input type="File"> so that client can select the file to be uploaded. The browse button works fine in all browsers but in IE6, the file dialog does not open. What could be the solution of the problem?
Thanks
Amit
================================
Be Positive, it really helps...
================================
Andyb
May 13th, 2002, 05:58 PM
As you have typed it, it should work. The code below works fine on my IE6.
<input type="File" name="FILE1">
Have you looked at any of the browser settings.
Odd though! ??
amitg
May 14th, 2002, 05:35 AM
Thanks for the reply. This much code works fine. But if you make it readonly, it can choose file in other browsers but not in IE6.
================================
Be Positive, it really helps...
================================
Andyb
May 14th, 2002, 06:00 PM
Dear Amit,
I have set up a test upload page on my server and uploaded a read only file with no problems at all.
IE ver 6.0.2600.0000.xpclnt_qfe.010827-1803
Sorry but I really don't understand why it doesn't work.
Regards,
Andy
amitg
May 15th, 2002, 01:37 AM
Dear Andy
I was not talking about readonly file but the readonly input type tag.
<Input type="file" name="file1" readonly>
If you use this code, it will not open dialog box in IE6 but will open it in other browsers.
Thanks
Amit
================================
Be Positive, it really helps...
================================
Andyb
May 15th, 2002, 05:16 PM
I am really not sure what you are trying to do. the Input Type 'FILE' is readonly. i.e. the designers made it this way so that an unscruplous programmer could not place into it a file name without a user knowing. I have never used any other 'tags' inside the file type.
I have always found the Netscape site useful in understand Javascript. This link explains all about Javascipt and the FileUpload object.
http://developer.netscape.com/docs/manuals/communicator/jsref/txt3.htm#1014071
and this
http://developer.netscape.com/docs/manuals/htmlguid/index.htm?content=tags10.htm#tags:INPUT
Sorry if I have misunderstood you.
Best regards,
Andy
codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved.