Flagrow image uploader for Flarum forum messages
- Edited
Update: version 0.1.0
released!
The links are not served over HTTPS, known issue. Fixing it as soon as tomorrow
A W E S O M E
You did a great job guys!
thanks
Update: 0.1.1
released.
Fixed the https issue. Now imgur links are forced over https. Local ones are served on the same protocol as the loaded page.
- Edited
In order to conform to best practices, we renamed the package to flagrow/flarum-ext-image-upload
please update your composer.json files. The old (non-prefixed) package is marked as abandoned.
Super!
- Edited
I just released 0.1.3 which now runs on the new package name (flagrow/flarum-ext-image-upload
). This fixes the upload url and some other things.
I'll moderate all issues solved in this thread.
HavocK that's one benefit of working together in Flagrow with matpompili ; a shared responsibility of maintaining quality packages!
Thanks! I've been waiting for an image attach extension since the beginning.
Local storage and resize works.
Imgur gives an error on upload though. I didn't configure an imgur client-id, is that required?
- Edited
0.2.0-beta is out!
New in this version:
- permission to allow uploading only to a specific group
- requires flarum/composer-installer 0.3.0
- moved logic of uploading to php
- added/restored imgur and local adapters
- now validates image uploads
- added cloudinary.com adapter
Please feel free to send PR for translations! Also any feedback is appreciated, as always
- Edited
With a big thanks to @Toby and @Franz for providing some great feedback. 0.2.0 reflects a lot of their feedback.
Please also note for the cloudinary upload method to be selectable you need to run the following composer command in the Flarum installation directory:
composer require cloudinary/cloudinary_php
Image upload? Looks like normal Markdown to me. Unless you're uploading the image to the local server and it's entering the image files location as the url... .-.
Cheun related to your feedback, I updated the OP and the readme on github. When you enable the extension a new button is added to the post composer. If you click it and select an image the image will be uploaded to the configured service - by default this is local storage aka your own Flarum installation. Once the upload is done a markdown image is added linking to the newly uploaded image.
Released 0.2.0-beta.2 fixing a serious issue where creating discussions was impossible due to a js error.
- Edited
Great addition!
The normal local upload works great. But I'm having an issue when I enable image resize and ONLY set the max width. It doesn't upload the image and puts a broken reference into the post.
Works fine if BOTH max width and height are set.