Several weeks ago, the code I used for image uploading worked flawlessly. After this time gap, I wanted to upload more, but the code was not working anymore.
Specifically, the /assets/v1/operations/... endpoint now only returns the operation path if you request the operation immediately after uploading an asset. After several seconds though, the same request returns the entire Operation Object.
I guess the fix is straightforward, but what irritates me is the lack of support for the cloud category. I resorted to creating the original post because there are very few resources and help for issues like this.
I also want to say that I’ve tried using node-fetch and not just axios, which didn’t fix the issue. I could try using a different language like Python, but I don’t want to translate everything.
Back to the topic, here’s the fix I used:
As I said, it’s very straightforward. I’m not sure why I didn’t want to use it before. I was afraid it would slow down uploading a lot, which didn’t happen. It’s still relatively fast.
I’m currently uploading the rest of the Fluent Icons: