Register after check the upload response. Has not sense to register a file to delete if the upload has not been successful.