UNPKG

@uppy/utils

Version:

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

10 lines (8 loc) 263 B
import toArray from '../../toArray.js' // .files fallback, should be implemented in any browser export default function fallbackApi( dataTransfer: DataTransfer, ): Promise<File[]> { const files = toArray(dataTransfer.files) return Promise.resolve(files) }