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

Comments

nithinkolekar created an issue. See original summary.

drumm’s picture

Project: Drupal.org infrastructure » Drupal.org customizations
Version: » 7.x-3.x-dev
Component: Other » Code
Category: Support request » Feature request
Related issues: +#2741227: Enable CKEditor for more content types

This 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.

rameshsomepalli99’s picture

StatusFileSize
new70 bytes

file Upload

avpaderno’s picture

drumm’s picture

Title: provide image upload for forums » Provide file upload for forums

This would really be any generally-allowed file type, not just images.

wombatbuddy’s picture

There'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.

ressa’s picture

Heh, 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?

ressa’s picture

I 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.

allexim’s picture

Dear 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

ressa’s picture

Time for the six-month bump :)

ressa’s picture

@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.

allexim’s picture

@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!!!

ressa’s picture

I 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.

allexim’s picture

i also do not get any notifications about updates specifically to this topic.

allexim’s picture

Seems, the drupal system and its owners had become more distant to... everything, had not they?

ressa’s picture

I 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.

allexim’s picture

I do get notifications for all my issues, both email and on my tracking page, so everything works well for me.

for 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.

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.

Fine, they are ready to adjust css a bit.

gisle’s picture

An 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.

ressa’s picture

I 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

avpaderno’s picture

StatusFileSize
new46.77 KB

I see it, but I cannot say that happens because I am site moderator.

screenshot

ressa’s picture

StatusFileSize
new39.24 KB

Thanks for checking @apaderno, here's what I see.

Comment, no file

gisle’s picture

You'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.

ressa’s picture

Priority: Normal » Major
Issue summary: View changes

The 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 :)

ressa’s picture

Issue summary: View changes
ressa’s picture

Issue summary: View changes
ressa’s picture

Issue summary: View changes
allexim’s picture

@ressa, definitely, i support you, it must have been fixed

jpcwebb’s picture

As 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

allexim’s picture

@jpcwebb, wow, it is perfect!
you absolutely recognizably do make a british correct way to compose a sentence (=)^(=)
... amazing!

romulasry’s picture

I have found out how to do it with forums but not with comments, any idea how?

ressa’s picture

I still don't see the option @paderno shared in #20 ...

ressa’s picture

Title: Provide file upload for forums » Grant registered users permissions to add an image, same as Site Moderators

Adjusting title, since this is a permission task.

drumm’s picture

Title: Grant registered users permissions to add an image, same as Site Moderators » Provide file upload for forum comments

Keeping this focussed on forum comments is best.

ressa’s picture

All 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?

drumm’s picture

Title: Provide file upload for forum comments » Provide file upload for forums

Ok, back to the original title. Looks like this needs to be revisited:

https://git.drupalcode.org/project/drupalorg/-/blob/8841f8823e77ae53614a...

ressa’s picture

Thanks 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 :)

ressa’s picture

It 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?

avpaderno’s picture

Would a merge request to change that code be accepted, or is it a feature request that needs to be postponed?