public static synchronized void stopUpload ( final String uploadId ) { UploadTask removedTask = uploadTasksMap . get ( uploadId ) ; if ( removedTask != null ) { removedTask . cancel ( ) ; } }
Stops the upload task with the given uploadId .