php - Is it possible to have progress bar for file uploads when using REST API? -
I use base64 encoding for file uploads. The following is REST API for file upload:
mail / user /: resource / files controlled through authentication RESOURCEID is done. And the content of the post request is file content in the base64 format.
Can my progress be bar for uploading files? If not, which path should I take to handle file uploads with the progress bar?
You can do something like this,
request.upload .addEventListener ('Progress', function (e) {_progress.style.width = Math.ceil (e-mailed / e.total) * 100 + '%';}, false); Full Description
Comments
Post a Comment