467,144 Members | 1,435 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,144 developers. It's quick & easy.

<input type=file , tag.

hi ,

I need to customize <input type=file , tag.

I find a way to do that : on the client side by javascript and css first , I
am hiding the fileupload object , then I am calling the click event of
fileupload object.This opens the select files dialog box of file upload and
user will be able to select the file that he wants to upload.But it seems
that internet explorer does not allow uploading files selected by using this
method.Because when the user clicks submit button.It resets the selected
filename in the file upload tag.But I know that it works (for example
google's new mail service : gmail works like this) what am I missed ? is
anybody knows how to do this ?
Nov 18 '05 #1
  • viewed: 1868
Share:
2 Replies
what specifically are you trying to customize on the control?
You are VERY limited with it due to security concerns.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Ersin Gençtürk" <ers[spam]@gencturk.org> wrote in message
news:OI***************@TK2MSFTNGP12.phx.gbl...
hi ,

I need to customize <input type=file , tag.

I find a way to do that : on the client side by javascript and css first , I am hiding the fileupload object , then I am calling the click event of
fileupload object.This opens the select files dialog box of file upload and user will be able to select the file that he wants to upload.But it seems
that internet explorer does not allow uploading files selected by using this method.Because when the user clicks submit button.It resets the selected
filename in the file upload tag.But I know that it works (for example
google's new mail service : gmail works like this) what am I missed ? is
anybody knows how to do this ?

Nov 18 '05 #2
yes I know from the same place : gmail implemented it.I have viewed the
sourcecode of gmail , it is basically jscript code and in the client it
renders the html dynamically, I don't have enough time to fully examine the
source codes , but I found that they do this by hiding the type=file tag by
display:none

"Sekhar" <ch************@am.joneslanglasalle.com> wrote in message
news:7C**********************************@microsof t.com...
I know we are very limited to customize on the <input type=file> control. But still, gmail has implemented a file attachment without showing the
browse button.
How were they able to do it? Their page is pure HTML with Javascript - very intelligent coding - doesn't even allow you to view source of HTML.
I was trying all possible ways for more than half a day to figure it out but in vein. Could someone check it out at gmail and give us a feedback?
--
Sekhar
"Curt_C [MVP]" wrote:
what specifically are you trying to customize on the control?
You are VERY limited with it due to security concerns.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Ersin Gençtürk" <ers[spam]@gencturk.org> wrote in message
news:OI***************@TK2MSFTNGP12.phx.gbl...
hi ,

I need to customize <input type=file , tag.

I find a way to do that : on the client side by javascript and css first ,
I
am hiding the fileupload object , then I am calling the click event of
fileupload object.This opens the select files dialog box of file
upload and
user will be able to select the file that he wants to upload.But it
seems that internet explorer does not allow uploading files selected by using this
method.Because when the user clicks submit button.It resets the

selected filename in the file upload tag.But I know that it works (for example
google's new mail service : gmail works like this) what am I missed ? is anybody knows how to do this ?


Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Brian Henry | last post: by
7 posts views Thread by Tim Slattery | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.