Imgur Upload

Simple image upload from the Flarum editor, added support for custom proxy_pass URL

Compatible with Flarum 0.1.0-beta.13

18 downloads

released on Dec 5, 2015

0
0

flarum-imgur-upload v3 Packagist

flarum-imgur-upload is a Flarum extension that allows posting images in Flarum posts using Imgur for image hosting.

Features

With flarum-imgur-upload you can upload images to Imgur while writing your post, and the extension will automatically embed the images in your post. You can also paste from clipboard to upload an image file.

Compared to the original extension (matpompili/flarum-imgur-upload), this extension:

  • doesn't resize/change orientation of images. The raw file is uploaded to Imgur
  • supports paste from clipboard
  • has been rewritten to use Flarum components
  • supports beta 8
  • has a more polished UI
  • Support Custom Imgur proxy_pass URLs [email protected]
  • 增加了对反代URL的支持 [email protected]

Demo GIF ←Imgur gif,maybe not available in some places

Installation

composer require lcinhk/flarum-imgur-upload

If you previously used matpompili/flarum-imgur-upload (the original work on this extension by Matteo Pompili) or botfactoryit/flarum-imgur-upload, you should disable and remove those extensions when you upgrade to beta 8.

Configuration

Since flarum-imgur-upload uses Imgur API to upload your images, you will need an Imgur Client ID. To get one simply register to the Imgur website, and register an application here. You need to choose a name for your application (e.g. My Forum), and select Anonymous usage without user authorization. If the form requires you to set an Authorization callback URL, that's a bug. Select OAuth 2 authorization without a callback URL to avoid that, or play with the radio buttons a bit.

Once your application has been registered, your Client ID will be available here. Put it in the configuration of the extension, in your admin page.

If your clients cannot access Imgur, follow this guide (In Chinese) to set up a proxy_pass for Imgur.

如果你的客户无法访问Imgur,可按照这个指南 来设置Imgur反向代理

Credits

The original work for this extension was done by @matpompili.

© 2020 Hyn by Daniël "Luceos" Klabbers. All rights reserved. · Extensions and extension information is provided by the respective (copyright holding) authors. · Images on Extiverse pages are from Unsplash.