views:

27

answers:

1

I think I've seen Gmail do it in Chrome or Internet Explorer, but I've never seen it in Firefox. I thought I'd ask anyways. Is it possible to do a file upload without requiring an <input type="file" />? I see that you can use iframes to automatically submit the file input, so my question is

Can you programmatically pop up a file upload dialog?

If so, what browsers is it supported on?

+1  A: 

GMail uses Flash to trigger the Browse File dialog.

You should be able to accomplish this with the FileReference class and its browse method.

Also check out existing solutions, such as the Uploadify Plugin.

Jonathan Lonowski