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

Self-host can not Paste images copied from other web pages. #6485

Open
1 task done
emengweb opened this issue Apr 8, 2024 · 10 comments
Open
1 task done

Self-host can not Paste images copied from other web pages. #6485

emengweb opened this issue Apr 8, 2024 · 10 comments

Comments

@emengweb
Copy link

emengweb commented Apr 8, 2024

What happened?

Self-host Affine can not Paste images copied from other web pages, and download of images not work.

Judgment reason:
The following url mapping is missing:
imageProxyUrl: '/api/worker/image-proxy',
linkPreviewUrl: '/api/worker/link-preview',

Distribution version

macOS x64 (Intel)

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

Chrome

Are you self-hosting?

  • Yes

Relevant log output

No response

Anything else?

No response

@affine-issue-bot
Copy link

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.

@pengx17
Copy link
Collaborator

pengx17 commented Apr 8, 2024

might be a duplicate of #5944
web clipboard api is not usable without using https

@emengweb
Copy link
Author

emengweb commented Apr 8, 2024 via email

@hch5184
Copy link

hch5184 commented Apr 11, 2024

might be a duplicate of #5944 web clipboard api is not usable without using https

i used https, it still can not work

@javix64
Copy link

javix64 commented Apr 12, 2024

might be a duplicate of #5944 web clipboard api is not usable without using https

i used https, it still can not work

can you explain how did you integrate https? I would like to.

@hch5184
Copy link

hch5184 commented Apr 12, 2024

might be a duplicate of #5944 web clipboard api is not usable without using https

i used https, it still can not work

can you explain how did you integrate https? I would like to.

nginx

@hch5184
Copy link

hch5184 commented Apr 14, 2024

What happened?

Self-host Affine can not Paste images copied from other web pages, and download of images not work.

Judgment reason: The following url mapping is missing: imageProxyUrl: '/api/worker/image-proxy', linkPreviewUrl: '/api/worker/link-preview',

Distribution version

macOS x64 (Intel)

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

Chrome

Are you self-hosting?

  • Yes

Relevant log output

No response

Anything else?

No response

i found the repository
https://github.com/toeverything/affine-workers

but can only deploy in Cloudflare

you can make wheel by yourself in other programming languages

@matheusriios
Copy link

Some updates about that? I'm having the same issue.

https://discordapp.com/channels/959027316334407691/1231935115303718953

@pengx17
Copy link
Collaborator

pengx17 commented Apr 24, 2024

I see. Sorry about the statement I made about https. It clearly related to the image-proxy issue.
It looks like we haven't including workers in the self-host version. Before we do, you need to either deploy https://github.com/toeverything/affine-workers onto a cloud service like Cloudflare, or adopt the code to make it running on your server somehow, which should not be too difficult.

@eikaramba
Copy link

i tried to deploy the cloudflare worker but there were too many obstacles along the way. i have rewritten the worker now as a simple express app which can be deployed locally via docker. i only tried out the link-preview endpoint (is the image proxy used anywhere else apart from within the link preview endpoint?) and it works flawlessly now.
https://github.com/eikaramba/affine-workers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 *Untriaged
Development

No branches or pull requests

6 participants