-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (77 loc) · 4.38 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Fine Uploader</title>
<meta charset="utf-8" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.0/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="css/fineuploader.css" rel="stylesheet" type="text/css"/>
<link href="css/styles.css" rel="stylesheet" type="text/css"/>
<script src="js/header.js"></script>
<script src="js/util.js"></script>
<script src="js/button.js"></script>
<script src="js/ajax.requester.js"></script>
<script src="js/deletefile.ajax.requester.js"></script>
<script src="js/handler.base.js"></script>
<script src="js/handler.base.js"></script>
<script src="js/window.receive.message.js"></script>
<script src="js/handler.form.js"></script>
<script src="js/handler.xhr.js"></script>
<script src="js/uploader.basic.js"></script>
<script src="js/dnd.js"></script>
<script src="js/uploader.js"></script>
<script src="js/uploader-demo.js"></script>
</head>
<body>
<h1>Fine Uploader Demo</h1>
<div id="examples">
<div class="example">
<h3>Simple & Automatic</h3>
<p>
This is the Fine Uploader with only required options set. Note that, by default, you may also drag & drop
files onto the button if you are using a browser that supports the multiple attribute on input elements, and
the File and FormData objects, as well as the upload function on the XHR object. This currently rules out
at least IE 9 and earlier.
</p>
<ul id="basicUploadSuccessExample" class="unstyled"></ul>
</div>
<div class="example">
<h3>Manually Trigger Uploads</h3>
<p>
The default behavior of Fine Uploader is to immediately attempt to upload files as they are selected.
One option allows you to simply queue all files, and then start uploading at a later time by calling
<code>uploadStoredFiles()</code> on your Fine Uploader instance.
</p>
<ul id="manualUploadModeExample" class="unstyled"></ul>
<span id="triggerUpload" class="btn btn-primary">Upload Queued Files</span>
</div>
<div class="example">
<h3>See server failure messages</h3>
<p>
If your server returns a response that includes a reason property, such as <code>{"success": false, "reason": "unsupported file type"}</code>
the error message is accessible in the UI by hovering over the failed upload item.
</p>
<ul id="basicUploadFailureExample" class="unstyled"></ul>
</div>
<div class="example">
<h3>Various Options</h3>
<p>
There are various options available to you when using Fine Uploader. In this example, I've used a
small subset of these options to create an uploader with custom upload button text, restricted to one
file upload/selection at once (may not select multiple files), restricted to <code>jpeg</code>, <code>jpg</code>, and <code>txt</code> files,
and restricted to a max file size of 50 kb.
</p>
<ul id="uploadWithVariousOptionsExample" class="unstyled"></ul>
</div>
<div class="example">
<h3>FineUploaderBasic</h3>
<div id="fubUploadButton" class="btn btn-primary"><div>Select Files</div></div>
</div>
<h4 class="endingRemark">Fine Uploader is currently an active project, and many improvements and adjustments are possible in the near future. Please see the
<a href="https://github.com/valums/file-uploader">Github project page</a> for more details.
You may also examine the <a href="js/uploader-demo.js" class="decorate"><code>uploader-demo.js</code></a>
source file on this page.</h4>
</div>
</body>
</html>