-
Notifications
You must be signed in to change notification settings - Fork 118
Allow image uploading from external web URL #201
Copy link
Copy link
Open
Description
Currently image uploading by URL in editor works only from current domain. Will be good to allow uploading from any web source
uploadByUrl: (url: string) => {
if (url.startsWith(window.location.origin)) {
return new Promise<any>(done => done({
success: 1,
file: {
url,
}
}));
} else {
toast.error('Please upload image via File manage')
return new Promise<any>(done => done({
success: 0,
}));
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels