Tuesday, August 07, 2007 8:45 AM
I'm trying to write some code that will allow users to upload files from a website. This can't be posted back with the rest of the page, so I'm doing it like every article on the web suggests when trying to duplicate Google's Add-Attachment Gmail functionality and I'm using dynamically created iframes. Hurray.
But the one thing that is driving me nuts...the one piece of functionality that I'm missing...is how GMail opens the "Choose File" dialog from a hyperlink and not from the gawd-awful looking "Browsel..." button that comes with the file-upload control!
I figured there was some way to style the file-upload control to trick out the button and hide the textbox...nope.
I figured I could call the click event of the file-upload control from another button or hyperlink...but there's no click event for the file upload control.
I figured if I glared at my GMail page long enough, it would become so uncomfortable that it would just say "Here, take this you creepy bugger!"...but alas no, it just commented on my really goodlookingness.
So I'm at a loss here...still looking, but if anyone has some ideas to shoot my way I'd appreciate it.
D