Fix file upload in Apps class

Reference #19