Small JS file/blob upload script
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

I need a small JS script which will upload local files or blob files to a target Aliyun OSS storage space

They have a JS SDK here on Github along with some demo files:
https://github.com/aliyun-UED/oss-js-upload

They also have some docs here:
https://help.aliyun.com/document_detail/32072.html?spm=5176.doc32069.6.736.49YGrd

The description isn’t in English unfortunately but the code is relatively straightforward and I can provide tips if necessary for your effort :)

Thanks!

So how would your workflow be with the script? For example, you wanna give it a directory and credentials, and it uploads files (picking some upload method based on file's size), do you want to see the progress, how do you want it to be like?
thelostt 10 months ago
awarded to thelostt
Tags
javascript

Crowdsource coding tasks.

1 Solution

Winning solution

Update.

gist: https://gist.github.com/thelostt/7860d2f71db290d82110529ec6db6a3a

usage

upload_to_aliyun(client, "local-file|blob|buffer", "destination-path-location");

user856 has emailed me when I made a comment on their bounty, so they asked to post "Reserved", so the bounty don't expire. I'll update the solution as I finish it.
thelostt 10 months ago
View Timeline