On the progress progress of uploading files by xhr

In the

scenario, the front end uploads the file to node api,api through xhr and calls the upload method put of Aliyun oss sdk (or multipart), Aliyun is responsible for uploading the file to oss.. Well, the problem is that when the front end monitors the progress of xhr.upload.onprogress, there is a confusion:
the progress monitored by onprogress is only the progress of uploading files to the node server, not the real progress of uploading Aliyun oss to oss, and the progress is inconsistent. When uploading large files, it is obvious that the progress progress is 100%, but the oss upload is not halfway.

how to unify the progress? Solve?

Feb.26,2021

if Aliyun does not provide the corresponding api, you will not be able to directly obtain the upload progress of Aliyun. After all, this is beyond the control of the front end. I have not used Aliyun's OSS,. If Aliyun does not provide an API to obtain the upload progress, you may be able to obtain the progress in other ways-you can know that the progress is not the same two times, which means you must have a way to get the upload progress of Aliyun through your own channels, right? If you can only see the upload progress of Ali Yun in the management background, you can only climb the web page, but this is more dangerous. You can submit a ticket to Ali Yun and ask if there is a way to open an interface for you.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b31e66-4d46d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b31e66-4d46d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?