Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request : ability to upload images and insert them right away in new messages #12795

Open
1 of 7 tasks
tcharlss opened this issue Sep 10, 2020 · 8 comments
Open
1 of 7 tasks
Labels
topic/ui Change the appearance of the Gitea UI topic/ui-interaction Change the process how users use Gitea instead of the visual appearance type/enhancement An improvement of existing functionality

Comments

@tcharlss
Copy link

tcharlss commented Sep 10, 2020

  • Gitea version: 1.12.1
  • Git version: ?
  • Operating system: ?
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist: ?

Description

Say you're typing a new message and you want to insert an image in the text, ie. ![](path/to/my/image.jpg).
You want the image to be hosted on the gitea server, so you upload it via the widget at the bottom.

Problem is, after the upload you don't have access to the URL of the image, so you can't insert it yet.
You first have to submit the message, than only are you able to copy the image URL by inspecting the attached files, edit the message, and finally insert it.

It would be nice if the upload widget displayed the files URL, that way it could be done right away.
Well, that is, if the widget uploads the files directly and not after the message is submitted, I'm not entirely sure how it works :)

@tcharlss
Copy link
Author

And here's a screenshot of the widget, just to be clear: we can only see the file name, not the full path on the server, so at this stage it is impossible to insert the image in text yet.

gitea_upload_widget

@davidak
Copy link

davidak commented Oct 21, 2020

This is actually one of the biggest issues i have with Gitea!

I want to have the images next to the text where i explain what is wrong and actually display them in the browser (not just their name).

It should just work as on GitHub, that is perfect. Drag and drop them into the text where you want to have them.

Here is an example why it's currently bad:

GitHub: davidak/test#1
Imported to Gitea: https://try.gitea.io/davidak/1/issues/1
Native Gitea: https://try.gitea.io/davidak/1/issues/2 (7 images i have added to the issue are actually missing)

@lunny lunny added the type/enhancement An improvement of existing functionality label Mar 18, 2022
@6543 6543 added topic/ui Change the appearance of the Gitea UI topic/ui-interaction Change the process how users use Gitea instead of the visual appearance labels May 5, 2022
@r10r
Copy link

r10r commented Nov 15, 2022

I'll second that! That would improve usability a lot, since attaching images is a very common task.

@HammyHavoc
Copy link

Would love to be able to do this. Would make reporting bugs during game dev requiring a sequence of images to demonstrate the issue much more easily understood within the context of the description for each step to replicate it.

@shalak
Copy link

shalak commented May 3, 2023

I believe this feature is already present in Gitea Version: 1.17.3, is it not?

@shalak
Copy link

shalak commented May 3, 2023

Huh, I noticed that it does work then creating a PR or adding a new comment. But with replying to existing comment - it doesn't work... Anybody else has this issue?

@zeripath
Copy link
Contributor

zeripath commented May 3, 2023

@shalak could you show us a screenshot?

@shalak
Copy link

shalak commented May 3, 2023

@shalak could you show us a screenshot?

Huh, apologies, I was mistaken - it appears that the pasting images directly from clipboard works in PRs for comments in "Conversation" (e.g. https://gitea.mydomain.com/user/repo/pulls/1), but does not work in the "Files Changed" page (e.g. https://gitea.mydomain.com/user/repo/pulls/1/files)

But that applies not only to pasting from clipboard, but for attaching images overall.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/ui Change the appearance of the Gitea UI topic/ui-interaction Change the process how users use Gitea instead of the visual appearance type/enhancement An improvement of existing functionality
Projects
None yet
Development

No branches or pull requests

8 participants