0

A simple

<input type="file"> 

is not working in Google Chrome Extension.. Why?

2

1 Answer 1

1

Using the file input on a popup is buggy on some systems with chrome. See http://code.google.com/p/chromium/issues/detail?id=61632

If you're using a popup and need a file input, the workaround im using is:

chrome.browserAction.onClicked.addListener(function(tab) { chrome.tabs.create({'url': chrome.extension.getURL('init.html')}); }); 
Sign up to request clarification or add additional context in comments.

2 Comments

I have also tried trigger('click') on that input type="file" element... :-( Still no use
The problem is not triggering the chooser, but showing the chooser itself, as the (chromium implementation of the) dialog would close the popup.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.