Fixed issue where uploaded file not immediatly accessible because upload API responds before the upload has completed.