Gitea: Cannot add attachments when editing an issue

Created on 3 Mar 2018  路  6Comments  路  Source: go-gitea/gitea

  • Gitea version (or commit ref): 990709da8fa64d51d8005146da1728f960444abd
  • Git version: N/A
  • Operating system: N/A
  • Database (use [x]): N/A
  • Can you reproduce the bug at https://try.gitea.io:

    • [ ] Yes (provide example URL)

    • [ ] No

    • [X] Not relevant

  • Log gist: N/A

Description

When editing an issue, gitea does not offer an option to add a new attachment. The first post in an issue should always be fully editable so that relevant information may be added to it (if the team's workflow is so designed) so relevant information can always be accessible without searching through the entire thread.

Screenshots

Here is a screenshot of the web ui as it appears when attempting to edit an issue:

image

As can be seen, the prompt to drag-and-drop a file to upload is not present. There is no other limitation I can see on changes that can be made retroactively, so this should be supported.

kinenhancement revieweconfirmed

Most helpful comment

Hi, I am working on this issue recently.

I would like to reuse dropzone's UI to allow user editing attachment.

Here is the preview of current progress:

edit-attachment0

When user click edit button on issue with attachments:

edit-attachment1

I would like to know if it's a good idea. The update is almost done, just remaining UpdateCommentContent need to be updated.

All 6 comments

This is available on gitea, but it looks like it was removed by the instance administrator (section [attachment], variable ENABLE, which must be set to true)

Thanks for the reply, @thehowl

ENABLE is actually set to true and attachments can be uploaded fine in new issues or new comments, but not when editing the existing issue after it has been created.

Here's another screenshot that more clearly demonstrates the problem: as you can see, the "add comment" box has the attachment selector but when the existing issue is edited, that same feature does not appear:

image

Woops, should have paid more attention! Thanks for the explanation.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

Image pasting also don't work when editing.
Only way to use new image is paste it to comment field then ctrl+x the link

Hi, I am working on this issue recently.

I would like to reuse dropzone's UI to allow user editing attachment.

Here is the preview of current progress:

edit-attachment0

When user click edit button on issue with attachments:

edit-attachment1

I would like to know if it's a good idea. The update is almost done, just remaining UpdateCommentContent need to be updated.

Was this page helpful?
0 / 5 - 0 ratings