fix file input checking (bug 1030388)
Merge pull request #40 from spasovski/imgupload

fix file input checking (bug 1030388)