matteocontrini The images are uploaded using the API key associated with my account, Imgur will know who they’ve assigned the key to.
Imgur Upload, simple image upload from the editor
- Edited
@matteocontrini maybe possible to implement this fuctions as and option in your extension with update some bug?
"allows you to add Image and Link without typing markdown code. It will show a pop-up in which you have to enter Title and URL and Click OK and you are done."
Hi i just installed the plugin but when I try to upload any kind of picture(jpg,png etc) it gives an error and it doesn't go through. What could it be the issue?
aydinknowz what's the error? Anything in the Flarum log file at <flarum>/storage/logs
?
aydinknowz did you follow the configuration instructions? Could you take a look at the Dev Tools console? You should see the error from the Imgur API there.
matteocontrini silly me, I didn't set the Imgur client id. Unfortunately, they don't let me create an account from Turkey. So I had to disable it. Thank you.
- Edited
Wonderful extension, thank you very much!
(hoping imgur will never go down, because with that I will use it a lot...)
I was not a fan of the link on the images, but it's really easy to remove it with a little CSS so I don't think it would need any option:
.Post-body a[href*="imgur"] {
cursor: default;
pointer-events: none;
border-bottom:none;
}
TB54 hi, there's already an option to not have a link on images: https://discuss.flarum.org/d/18491-imgur-upload-simple-image-upload-from-the-editor/133
matteocontrini Oh ok sorry, I read it to fast i didn't understand it was about that. Thanks !
@matteocontrini i found out imgur doesnt work in some country for example if you visit china, and you truly want all images to be showing in the forum for all users, have you thought about it?
instead we could have Postimages.org
which has no blocking / limitations.
and they are looking to add to new upcoming softwares, maybe we can get this chance for flarum
https://postimages.org/plugins
aydinknowz You can skip that step by purchasing a foreign number. That's how I solved this situation. It's not too expensive.
Braden hi, that could be an idea for another extension, as this one is called "Imgur Upload"
I'm personally not using this extension anymore and my audience is limited to my country so it's not something that I felt as an issue, though.
matteocontrini that could be an idea for another extension
That will be too kind of you
- Edited
A little question about this extension: do you have an idea of how much are the risks to see the images being deleted one day?
I have bad memories of imageshack, or other image servers, which were used a lot in the phpBB forums, with images disappearing (and therefore disappearing from the topics) after a year or two. I thought it would be different here as the images would here be attached to a imgur account, but i realize the image are not considered that way (if I login to imgur with the account I used for this extensions, the images uploaded with this extension on my forum are not present in my account).
Any experience from anyone with imgur and how much time image last?
TB54 I'm pretty sure I asked them in the past but I can't find the email message, maybe try contacting their support.
Anyway I'm pretty sure the answer is something that contains "forever", at least until images are still viewed every now and then.
- Edited
matteocontrini Hello ! Not having access to it is not so much the problem (I don't need to), it's just that i was not sure those images were really part of the account.
at least until images are still viewed every now and then.
That means visitors should view the forum's page in which they are regularly? And that a never-read topic could lose its images?
TB54 I don't remember precisely, I might be confusing that part with something else...
The best way would be to contact Imgur.
Ok I will try (just to be sure before asking them about it, the way we used imgur api for forums and automatic loading is not off the chart of their account rules?)
- Edited
TB54 it's not AFAIK. But you don't need to mention that, just ask what's the retention policy for images uploaded through the API. Let me know!