GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

07Type rejection — a gate that computes the reason from MIME prefix matching and bounces the file

Comparing each allowed MIME as a prefix with startsWith decides admission, and a failing file is pushed back to its original slot rather than vanishing, with the rejection reason (not an extension, type mismatch) read out through aria-live; during dragover the cursor shape forewarns the rejection.

Best forDocument-only attachments, contract uploads

File.typestartsWitharia-live
Type rejection — a gate that computes the reason from MIME prefix matching and bounces the file
Open in a new tab

07 Type rejection — a gate that computes the reason from MIME prefix matching and bounces the file — Measured area 4.949% · moving frames 10/23Original by GODRICH · SCSS and React ship in the zip · Drag and Drop File Upload UI: 9 Computed Dropzones

The post this demo lives in

Drag and Drop File Upload UI: 9 Computed Dropzones - preview of all 9 demosDrag and Drop File Upload UI: 9 Computed DropzonesDropped files turn into previews computed from their bytes: type, size and count drive the layout, images get pixel-read See all demos in this post

If you like this effect - similar demos