Started fixing file upload through API