N
N
n1ksON2021-03-04 21:45:46
API
n1ksON, 2021-03-04 21:45:46

How to upload an image to free hosting with API?

The simplest task. Upload an image to a free hosting with an open API and http 1.0 protocol (but you can also use https)
I've already gone through a bunch of options, nothing works. For example, the original version: imgbb. Not only does it not accept requests from http, but if you send from https, it says that the string with the base64 image is invalid.
Although the image is correct.
Next, imgur. Also does not accept http. With cloudinary, it just doesn't work. To send a request, you need to create an upload_preset. It seems that he did everything and set it up, but for some reason he gives the result, which is incorrect.

Prompt simple free hosting with API. Sent gif/base64 - received a link to the image.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2021-03-04
@rPman

The very first result in Google, in javascript for imgbb, they write that
such a simple api works there, what's wrong?
ps forget about http, this protocol will die like goper or ftp, it creates so many problems that it is better not to support it in principle

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question