Feature - Upload failure recover

- fixes function assignment