Fix file extension in upload method; added resource size in ini file