Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
We've observed that our users often attempt to paste content into the uploader, expecting it to be accepted.
Scenario: the user selects one or more files from file explorer (windows), copies to clipboard, then uses paste (ctrl+v) on the uploader screen. Would be good if the uploader could watch for the "paste" event and add the clipboard files to the upload queue.
Also, if the user has an image in the clipboard, typically from using the windows snipping tool, pasting the image content could be detected by the uploader and uploaded as either a jpg or png.
Example js for uploading files from clipboard:
function onPaste(event) {
if (event.clipboardData.files.length) {
var files = event.clipboardData.files;
var oReq = new XMLHttpRequest();
var data = new FormData();
for (var i = 0; i < files.length; i++) {
data.append("file[]", files[i]);
}
oReq.open("POST", "/uploadtarget");
oReq.send(data);
}
}