AFFiNE icon indicating copy to clipboard operation
AFFiNE copied to clipboard

[Bug]: Can't open attachments

Open deepu2 opened this issue 7 months ago • 6 comments

What happened?

I uploaded a .eml (email thread) file to a note but can't see a way to open this. I don't know if this is a bug or just not available. Same behavior with a .mp4 (video) file.

Distribution version

Windows x64

App Version

0.22.2

What browsers are you seeing the problem on if you're using web version?

No response

Are you self-hosting?

  • [ ] Yes

Self-hosting Version

No response

Relevant log output


Anything else?

I am assuming it's the same for a lot more extensions

deepu2 avatar Jun 11 '25 04:06 deepu2

Issue Status: 🆕 *Untriaged

*🆕 Untriaged

The team has not yet reviewed the issue. We usually do it within one business day. Docs: https://github.com/toeverything/AFFiNE/blob/canary/docs/issue-triaging.md

This is an automatic reply by the bot.

affine-issue-bot[bot] avatar Jun 11 '25 04:06 affine-issue-bot[bot]

@deepu2

Send a screenshot or a video if possible showing the issue. Much appreciated.

NorkzYT avatar Jun 11 '25 19:06 NorkzYT

Sorry, here you go. I found out the mp4 files have an embed view option where I can preview the video files. I have uploaded a test.eml file onto the page, when I click on it I thought it would open the file or show a windows dialog to open this file with different applications but nothing happens. Tried single click, double click, Ctrl+Click, Shift+Click etc.

Image

Image

deepu2 avatar Jun 11 '25 23:06 deepu2

@deepu2

Understood.

Seems that .eml files currently do not have any viewable support.

NorkzYT avatar Jun 14 '25 02:06 NorkzYT

You mean inside of Affine? Why can't we have the OS handle it? .eml is a standard email file type and I have Outlook, Thunderbird that can open them. Appflowy does this for every extension apart from the obvious media files (images and videos)

deepu2 avatar Jun 14 '25 02:06 deepu2

@deepu2

I do mean inside of AFFINE. By "OS", what specifically are you referring to? The Desktop app? I can make a PR to add this feature.

NorkzYT avatar Jun 14 '25 02:06 NorkzYT

@NorkzYT

I am using the desktop app on Windows so I mean the "Select an app to open .* file" dialog attached below. The flow would be: click on the attachment, this dialog will be opened if there are multiple apps or it will be opened with my default app. This will depend on the OS but there is a similar dialog on Linux as well. The browser can just download the file and then can be opened like any other file.

Image

PS: I also noticed you worked on my other request, thank you so much for that :)

deepu2 avatar Jun 18 '25 23:06 deepu2

@deepu2

This explanation helped me understand. I appreciate it and no problem.

NorkzYT avatar Jun 18 '25 23:06 NorkzYT