File Upload works with size limit

Code is untidy