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

Can you add a feature that supports pasting images? #7

Open
amiaoapp opened this issue Jul 18, 2024 · 5 comments
Open

Can you add a feature that supports pasting images? #7

amiaoapp opened this issue Jul 18, 2024 · 5 comments
Assignees

Comments

@amiaoapp
Copy link

amiaoapp commented Jul 18, 2024

Enable direct pasting from the clipboard into the browser, rather than local import or image dragging and dropping

@nucliweb
Copy link

I can work to add this feature @colbyfayock

@colbyfayock
Copy link
Contributor

awesome! all you

@nucliweb
Copy link

@colbyfayock, have you detected a React component/hook to do this, or would you prefer us to implement it natively?

@nucliweb
Copy link

I create a Codesandbox with an example to paste only an image from clipboard.

I need to know if the new feature needs to upload images copy from the operating system; in this case, can the user copy (to upload) multiple images?

@colbyfayock
Copy link
Contributor

i dont mind if it's a component/hook if it's lightweight. what you have there seems to work perfectly. probably would be appropriate as a hook right?

then i think you would basically carry on and do the same thing onDrop is doing here: https://github.com/cloudinary-community/imgto.xyz/blob/main/src/components/WidgetUpload/WidgetUpload.tsx#L349C11-L349C17

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

No branches or pull requests

3 participants