You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This doesn't have to be too hard. A simple implementation could be:
document.addEventListener('paste',function(event){if(event.clipboardData&&event.clipboardData.items){for(leti=0;i<event.clipboardData.items.length;i++){letitem=event.clipboardData.items[i];// Check if the item is a fileif(item.kind==='file'){// Get the file as a File objectletfile=item.getAsFile();// Use the File objectif(file){handleFile(file);}// Multiple files? Try zipping them?}}}});
At the end the "Multiple files? Try zipping them?" is a reference to #11
It should be possible to paste a file into the website (just like how imgur.com does). These files get handled just like any other.
Expected features
The text was updated successfully, but these errors were encountered: