Fix file upload in Apps class

Reference #19
Merge pull request #33 from mikealmond/hotfix/app-upload-fix

Fix file upload in Apps class