Index: src/site/samples/dndfiles/example/dndfiles.html |
diff --git a/src/site/samples/dndfiles/example/dndfiles.html b/src/site/samples/dndfiles/example/dndfiles.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..666616380219a81c6ead90800fbf203d55392c97 |
--- /dev/null |
+++ b/src/site/samples/dndfiles/example/dndfiles.html |
@@ -0,0 +1,25 @@ |
+<!DOCTYPE html> |
+ |
+<!-- |
+ Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+ for details. All rights reserved. Use of this source code is governed by a |
+ BSD-style license that can be found in the LICENSE file. |
+--> |
+ |
+<html> |
+ <head> |
+ <meta charset="utf-8"> |
+ <title>Reading Files Using the File APIs</title> |
+ <link rel="stylesheet" href="dndfiles.css"> |
+ </head> |
+ <body> |
+ <h3>Using Form Input, Drag and Drop, and Reading Files</h3> |
+ <form id="read"> |
+ <input type="file" id="files" name="files[]" multiple /> |
+ </form> |
+ <div id="drop-zone">Drop files here</div> |
+ <output id="list"></output> |
+ <script type="application/dart" src="dndfiles.dart"></script> |
+ <script src="packages/browser/dart.js"></script> |
+ </body> |
+</html> |