UNPKG

@uppy/utils

Version:

Shared utility functions for Uppy Core and plugins maintained by the Uppy team.

7 lines (6 loc) 229 B
import toArray from '../../toArray.js'; // .files fallback, should be implemented in any browser export default function fallbackApi(dataTransfer) { const files = toArray(dataTransfer.files); return Promise.resolve(files); }