mirror of
https://github.com/multipleof4/ntfy.git
synced 2026-10-13 15:15:24 +00:00
Web: support pasting images from clipboard
This commit is contained in:
@@ -235,6 +235,13 @@ const PublishDialog = (props) => {
|
||||
await checkAttachmentLimits(file);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
if (props.attachFile) {
|
||||
updateAttachFile(props.attachFile);
|
||||
console.log(`[PublishDialog] Attach file changed`, props.attachFile);
|
||||
}
|
||||
}, [props.attachFile]);
|
||||
|
||||
const handleAttachFileChanged = async (ev) => {
|
||||
await updateAttachFile(ev.target.files[0]);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user