Drop zone
Accepts local files by drag and drop or through a file picker.
Official Shopify docsPolaris 2.0 web component
Select product image files
Limit the accepted file types and read the selected files from the component's files property.
Validate the size of a CSV file
Check the chosen file before upload, and use error to explain a rejected file. This demo reads only the file’s name and size.