[New] handle attachments #56

Closed
opened 2020-06-03 14:15:55 +00:00 by 6543 · 11 comments
Member
  • show attachment and display if picture
  • make it downloadable
  • add files like a screenshot (jpg) and so on to issues/pull requests
* show attachment and display if picture * make it downloadable * add files like a screenshot (jpg) and so on to issues/pull requests
6543 added the
🛰️ API-dependency
🎉 Feature
labels 2020-06-03 14:15:55 +00:00
6543 self-assigned this 2020-06-03 14:16:35 +00:00
Author
Member
Ned an API: https://github.com/go-gitea/gitea/issues/3690
Owner

Thank you for opening issue in the upstream project.

Thank you for opening issue in the upstream project.
Author
Member

since this upstream-issue is open so long ... I will have a look at it (-> #3690)

since this upstream-issue is open so long ... I will have a look at it (-> [#3690](https://github.com/go-gitea/gitea/issues/3690))
6543 was unassigned by opyale 2021-04-07 21:53:10 +00:00
6543 was assigned by opyale 2021-04-07 21:55:29 +00:00
Author
Member
https://github.com/go-gitea/gitea/pull/14601
6543 removed their assignment 2021-10-07 20:33:08 +00:00
New pull request: https://github.com/go-gitea/gitea/pull/21783

New pull request:
https://github.com/go-gitea/gitea/pull/21783

I just saw, that the pull request is already merged. Since v1.19.0 (20. Mar. 2023) the API for attachments is included. 🎊

>New pull request: >https://github.com/go-gitea/gitea/pull/21783 I just saw, that the pull request is already merged. Since v1.19.0 (20. Mar. 2023) the API for attachments is included. 🎊
Owner

Thanks for letting us know.

Thanks for letting us know.
mmarif removed the
🛰️ API-dependency
label 2023-09-19 05:16:40 +00:00
mmarif added this to the 5.3.0 milestone 2023-09-21 06:38:03 +00:00
mmarif self-assigned this 2023-09-21 06:38:08 +00:00
Owner

Was just checking the attachments API. This is what I get for #1300.

[
	{
		"id": 58540,
		"name": "Screenshot_20230919_133134.png",
		"size": 41611,
		"download_count": 16,
		"created_at": "2023-09-19T08:37:33Z",
		"uuid": "c9bf83dc-8d08-460e-9986-ee7f292bccd7",
		"browser_download_url": "https://codeberg.org/api/repos/gitnex/GitNex/releases/0/assets/58540"
	},
	{
		"id": 58541,
		"name": "Screenshot_20230919_133201.png",
		"size": 41475,
		"download_count": 17,
		"created_at": "2023-09-19T08:37:33Z",
		"uuid": "e5f07ce2-4179-43ae-81a2-09e4d319aab2",
		"browser_download_url": "https://codeberg.org/api/repos/gitnex/GitNex/releases/0/assets/58541"
	},
	{
		"id": 58542,
		"name": "Screenshot_20230919_133224.png",
		"size": 19559,
		"download_count": 16,
		"created_at": "2023-09-19T08:37:34Z",
		"uuid": "6bed5cd4-2f82-4566-bea7-605d12af498d",
		"browser_download_url": "https://codeberg.org/api/repos/gitnex/GitNex/releases/0/assets/58542"
	}
]

Now, I am not sure what to make of this and how this will work. The browser_download_url seems broken to me. Adding v1 to it will give the same result.

Should we be using the web path https://codeberg.org/attachments/c9bf83dc-8d08-460e-9986-ee7f292bccd7?

If anyone has more info, please share for clarity.

Was just checking the attachments API. This is what I get for #1300. ``` [ { "id": 58540, "name": "Screenshot_20230919_133134.png", "size": 41611, "download_count": 16, "created_at": "2023-09-19T08:37:33Z", "uuid": "c9bf83dc-8d08-460e-9986-ee7f292bccd7", "browser_download_url": "https://codeberg.org/api/repos/gitnex/GitNex/releases/0/assets/58540" }, { "id": 58541, "name": "Screenshot_20230919_133201.png", "size": 41475, "download_count": 17, "created_at": "2023-09-19T08:37:33Z", "uuid": "e5f07ce2-4179-43ae-81a2-09e4d319aab2", "browser_download_url": "https://codeberg.org/api/repos/gitnex/GitNex/releases/0/assets/58541" }, { "id": 58542, "name": "Screenshot_20230919_133224.png", "size": 19559, "download_count": 16, "created_at": "2023-09-19T08:37:34Z", "uuid": "6bed5cd4-2f82-4566-bea7-605d12af498d", "browser_download_url": "https://codeberg.org/api/repos/gitnex/GitNex/releases/0/assets/58542" } ] ``` Now, I am not sure what to make of this and how this will work. The `browser_download_url` seems broken to me. Adding `v1` to it will give the same result. Should we be using the web path `https://codeberg.org/attachments/c9bf83dc-8d08-460e-9986-ee7f292bccd7`? If anyone has more info, please share for clarity.
Owner

Created an issue on Gitea project.

https://github.com/go-gitea/gitea/issues/27204

Created an issue on Gitea project. https://github.com/go-gitea/gitea/issues/27204

Any news for this issue? As the gitea issue is already completed. :)

Any news for this issue? As the gitea issue is already completed. :)
Owner

@BluePixel4k this is already taken care of in #1304. But need some time to finish the last bits of that PR.

@BluePixel4k this is already taken care of in https://codeberg.org/gitnex/GitNex/pulls/1304. But need some time to finish the last bits of that PR.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitnex/GitNex#56
No description provided.