Promise workaround on upload