Articles in this topic
Accept Ctrl+V screenshots in a web form — filter clipboardData.items by kind, rename the image.png blob, preview it with an object URL, then revoke it.
Read article →Flatten a dropped folder into File objects with webkitGetAsEntry, a readEntries pump that beats the 100-item cap, depth limits, and safe relative paths.
Read article →Stop drop-zone highlights flickering as the pointer crosses child elements — use relatedTarget and contains(), or a counter, and reset on drop and dragend.
Read article →Check dropped files in the browser before a byte is sent — count, size, magic-byte type, image dimensions, duplicates — and report every problem at once.
Read article →