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

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -