fix upload on Firefox
Merge pull request #2 from zyll/master

fix upload on Firefox