June 2018
Beginner to intermediate
394 pages
9h 2m
English
To manage the files that are uploading from the client, the device will demand certain basic operations, such as pause, resume, and cancel the uploads. These operations are carried out with the pause(), resume(), and cancel() methods. The pause and resume methods help in changing the progress and pause states. Canceling an upload will result in upload failure with an error indicating upload canceled. Take a look at the following code snippet that illustrates the file management scenario:
uploadTask = storageRef.child("images/Rafael.jpg").putFile(file);// Pause the uploaduploadTask.pause();// Resume the uploaduploadTask.resume();// Cancel the uploaduploadTask.cancel();
Using the Upload task object, we explored how to ...
Read now
Unlock full access