Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

DataTransfer.files

Questo articolo richiede una revisione tecnica. Scopri come puoi essere d’aiuto.

I volontari di MDN non hanno ancora tradotto questo articolo in Italiano. Registrati per tradurlo tu.

The DataTransfer.files property is a list of the files in the drag operation. If the operation includes no files, the list is empty.

This feature can be used to drag files from a user's desktop to the browser.

Syntax

dataTransfer.files;

Return value

A list of the files in a drag operation, one list item for each file in the operation. If the drag operation had no files, the list is empty.

Example

There are two live examples of this interface:

Specifications

Specification Status Comment
WHATWG HTML Living Standard
The definition of 'files' in that specification.
Living Standard  
HTML5.1
The definition of 'files' in that specification.
Working Draft Initial definition

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 4 3.5 10 12 3.1
Feature Android Android Webview Chrome for Android Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile
Basic support Not supported Not supported Not supported Not supported Not supported 10 Not supported Not supported

Tag del documento e collaboratori

 Hanno collaborato alla realizzazione di questa pagina: rolfedh, Sebastianz, AFBarstow
 Ultima modifica di: rolfedh,