Cromwell
Cromwell copied to clipboard
Allow image uploading from external web URL
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,
}));
}
}