How to upload images to imgur and get image URL?

1,184 views
Skip to first unread message

Chris Chen

unread,
Oct 20, 2017, 4:32:04 AM10/20/17
to MIT App Inventor Forum

Hello , everyone
I want to upload images to imgur.com and get image URL , how can i do?
Or have other better image storage methods?
Because fusion table can only save the image URL
help~

Ghica

unread,
Oct 20, 2017, 10:34:42 AM10/20/17
to mitappinv...@googlegroups.com
As far as I can see, imgur has an extensive API you can use. Look here: https://apidocs.imgur.com/
Study them, and come back with questions, or even better, solutions.
Cheers, Ghica.

Chris Chen

unread,
Oct 23, 2017, 9:46:15 AM10/23/17
to MIT App Inventor Forum
I do not understand, so do i need to code a page?

Taifun

unread,
Oct 23, 2017, 10:53:36 AM10/23/17
to MIT App Inventor Forum

Ghica

unread,
Oct 23, 2017, 12:21:44 PM10/23/17
to MIT App Inventor Forum
Chris: I did some studying for you, but it does not seem to be very simple. All the docs from Imgur that I tried to follow are either outdated or don't work.
I am out of time for this now. You can study what a Rest API and follow Taifun's advice. If you think that Rest API has to do something with sleeping, then maybe give this up for now.
There are other ways to upload images to a website of your own. Search this forum and you will find some interesting threads.
Cheers, Ghica.

Chris Chen

unread,
Oct 23, 2017, 1:39:56 PM10/23/17
to mitappinv...@googlegroups.com

I try this way,account verification appears to be successful

I used the extension to convert the image to base64,because imgur seems to only accept this format.

But the response content is

{"data":{"error":"No image data was sent to the upload api","request":"\/3\/image","method":"POST"},"success":false,"status":400}

Is the post method wrong?

Thanks for your help


Taifun

unread,
Oct 23, 2017, 2:10:46 PM10/23/17
to MIT App Inventor Forum
App Inventor does not support multipart/form-data
in case this is the only way to upload files to imgur, then it's not possible in App Inventor
Taifun

Chris Chen

unread,
Oct 24, 2017, 4:26:43 AM10/24/17
to MIT App Inventor Forum
So sad
Is there any other way to upload a picture to a database?

Taifun

unread,
Oct 25, 2017, 10:32:34 AM10/25/17
to MIT App Inventor Forum
you might want to upload the picture to a web server
alternatively use the ftp extension https://puravidaapps.com/ftp.php
or upload them to Dropbox https://puravidaapps.com/dropbox.php

Taifun
Reply all
Reply to author
Forward
0 new messages