Exception
Exception

Reputation: 8389

File Open dialog does not work in Chrome extension

A simple

<input type="file"> 

is not working in Google Chrome Extension.. Why?

Upvotes: 0

Views: 1633

Answers (1)

oliverguenther
oliverguenther

Reputation: 1127

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')});
});

Upvotes: 1

Related Questions