Switch file upload over to api