Premium

Receipt Upload: Drop Zone, Progress and Previews

By FrontendAtlas Editorial · Updated Nov 20, 2026

Challenge summary

Turn a receipts list that takes any file into a working uploader: a drop zone that stays lit over its own text, type and size checks, per-file progress with cancel and retry, and image previews that release their object URLs.

What you'll practice

  • Handle dragenter, dragover, dragleave and drop so the zone stays lit over its own text, and allow the drop.
  • Check files by type and size and give each rejected file its reason.
  • Drive a progress bar from upload progress, cancel an upload with AbortController and retry it from 0%.
  • Create one object URL per file and revoke it on remove and on unmount.

What Premium unlocks

Premium unlocks the runnable workspace, behavioral checks, implementation walkthrough, and edge-case discussion.

Free related practice

Public interview reports: Juejin (March 2020) · Binance frontend interview questions

Upgrade to FrontendAtlas Premium to unlock this challenge. Already upgraded? Sign in to continue.

Premium is $24 a month or $99 a year, less in many countries.