Modified upload for api