Problem/Motivation
The most annoying recurring problem for new users in the Drupal forums, is not being able to illustrate a problem by attaching an image to the forum post.
This can be especially frustrating for new users, if they spent quite some time creating an image or even an animated GIF to illustrate a process, only to fail in the task of including that image ...
This is a major issue for the forums, since new users regularly bump into this, and have a bad experience ...
The official workaround
How to add an image
Unfortunately, you may only embed an image in a forum post if the image is hosted on Drupal.org (and there is no trivial way to upload an image when editing a forum post). If you need to post a screenshot to illustrate your problem, don't try to embed the image in your forum post, instead upload the image to a third party website (e.g. Google drive, Dropbox) and then include a plain link to the externally hosted image in your post.
While links to external websites are generally deprecated, links to screenshots that illustrates the problem you seek support for, are OK.
From https://www.drupal.org/docs/administering-a-drupal-site/troubleshooting-...
Original issue text:
Compare to project issue queues forums are having ckeditor widget for submission which is a good thing, but since long time uploading image or file upload is not provided which make hard to use forum for describing the issue/problem.
I have created dummy issue #2459953: files placeholder for drupal.org forum posts long back for uploading images and later attaching it to forum post.
this issue is created on dcam's suggestion hoping some positive resolution.
Steps to reproduce
Try to add an image to a forum post and fail.
Proposed resolution
Allow uploading a file in a forum post, in these formats:
- GIF
- JPG
- PNG
Remaining tasks
Allow registered user to upload an image file in Forum posts.
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #21 | drupal-comment.png | 39.24 KB | ressa |
| #20 | e42e5c03838c7374fd061079fee18e71.png | 46.77 KB | avpaderno |
| #3 | Screenshot 2019-06-13 at 2.35.31 PM.png | 70 bytes | rameshsomepalli99 |
Comments
Comment #2
drummThis would be a good opportunity to make sure image uploads for CKEditor work smoothly before enabling it on issues, which are currently BUEditor.
A potential downside might be enabling more conversation in forums that’s more issue queue material. Enabling more-clear communication outweighs that for me.
Comment #3
rameshsomepalli99 commentedfile Upload
Comment #4
avpadernoComment #5
drummThis would really be any generally-allowed file type, not just images.
Comment #6
wombatbuddy commentedThere's another reason why the requested feature can be useful.
Sometimes we create tutorials for users in forum posts.
If tutorials contains screenshots, then we upload them to external servers.
Then we insert links to images into forum posts.
The problem is that if images are hosted outside of drupal.org, then
there is no guarantee that they stay available all the time.
But it would be good, if they stay always available for future readers.
Comment #7
ressaHeh, I also thought about creating a dummy issue for uploading images, @nithinkolekar ...
What's blocking this issue from getting fixed, by allowing users to upload files in the forum issues?
Comment #8
ressaI think being able to add images in forum posts would be quite helpful -- both for those posting questions, but also for those of us who help out in the Forum. So I will just give this a little bump, and hope this feature can be added at some point.
Comment #9
allexim commentedDear dru-pals,
7 hours ago i had uploaded some images through/add/casestudy.
When had posted a forum topic, all of them were visible.
A little later some of images vanished.
I invoke drupal pundits!!! woooooo
Comment #10
ressaTime for the six-month bump :)
Comment #11
ressa@allexim: I think you left them as drafts, like a work-a-round trick, if I understand you correctly.
But we need a more robust solution, by enabling creating images directly in forums posts, as we can in issues.
Comment #12
allexim commented@ressa, why did you use the unborn metaphor?
Has the time for changes come?
Definitely, they were left as a draft for ever.
Yep, the drupal is built to use many tricks.
Why not just to talk with the administrators of the drupal.org website and ask them to allow remote src for images and to change the configuration of the text editor?
And, @ressa, as you could have noticed, all rest images were also wiped out.
I invoke again the admins of the Drupal and claim to enable support of the images' upload, pleeazzzzzz!!!
Comment #13
ressaI didn't even see your post @allexim. It was just another bump post, which I do every half year, to check if images could at some point be possible to use in the forums.
I hope it will be possible some day.
Comment #14
allexim commentedi also do not get any notifications about updates specifically to this topic.
Comment #15
allexim commentedSeems, the drupal system and its owners had become more distant to... everything, had not they?
Comment #16
ressaI do get notifications for all my issues, both email and on my tracking page, so everything works well for me.
I actually think administrators such as @gisle does an amazing job in the forums, just as @drumm does a great job keeping drupal.org well functioning, and for example updated the drupal.org breadcrumbs shortly after I made the suggestion: #3347456: Smaller breadcrumbs.
There are a lot of issues, and only so many hours in a day.
Comment #17
allexim commentedfor some reason, i do not receive.
Last time i have gotten it, was for: [Forum topic] View video files with Video JS, 2023-04-12.
Checked one more time: all my notifications' settings are On.
Fine, they are ready to adjust css a bit.
Comment #18
gisleAn update: When you now click "Add new Forum topic", there is actually a file upload button as part of the "Create Forum topic" form. I.e. you can upload a file when you create a new topic, and embed it your topic with the "image" widget in the editor. I don't know when this was added. I just noticed.
As for Forum comments, there is an "image" widget, but still no file upload button.
Comment #19
ressaI don't see that option, perhaps it's only for some roles?
For example here: "Before you start" > click "Add new Forum topic" https://www.drupal.org/node/add/forum/20
Comment #20
avpadernoI see it, but I cannot say that happens because I am site moderator.
Comment #21
ressaThanks for checking @apaderno, here's what I see.
Comment #22
gisleYou're right. I can only see it when logged in as a Site Moderator. When I log in as a less privileges user, it is not there. Some permissions need tweaking.
Comment #23
ressaThe most annoying recurring problem in the Drupal forums is not being able to illustrate a problem with an image. This can be especially frustrating for new users, if they spent quite some time creating these images.
Therefore, I would classify this as a major issue for the forums, since users regularly bump into this, and have a bad experience ...
I am very curious: What are the arguments against allowing registered users to upload an image file?
I have updated the Issue Summary, and hope this can be fixed soon. Thanks :)
Comment #24
ressaComment #25
ressaComment #26
ressaComment #27
allexim commented@ressa, definitely, i support you, it must have been fixed
Comment #28
jpcwebb commentedAs a new user to Drupal 10 and having just tried to raise an issue which needed an image to illustrate, I can fully concur this is a stupid limitation
Comment #29
allexim commented@jpcwebb, wow, it is perfect!
you absolutely recognizably do make a british correct way to compose a sentence (=)^(=)
... amazing!
Comment #30
romulasry commentedI have found out how to do it with forums but not with comments, any idea how?
Comment #31
ressaI still don't see the option @paderno shared in #20 ...
Comment #32
ressaAdjusting title, since this is a permission task.
Comment #33
drummKeeping this focussed on forum comments is best.
Comment #34
ressaAll right, but it's not only for comments, but also the initial post itself ... I wonder who can make this happen? Can you help with enabling this @drumm?
Comment #35
drummOk, back to the original title. Looks like this needs to be revisited:
https://git.drupalcode.org/project/drupalorg/-/blob/8841f8823e77ae53614a...
Comment #36
ressaThanks for locating the code that needs to get updated, image upload in the Drupal Forum would be an amazing Christmas gift for the Drupal community :)
Comment #37
ressaIt is still a recurring challenge that users cannot add an image to a post.
I hope it will be allowed to add images in Forum posts and comments in the new drupal.org?
Comment #38
avpadernoWould a merge request to change that code be accepted, or is it a feature request that needs to be postponed?