-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
61 lines (55 loc) · 2.28 KB
/
example.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
<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>EasyDAV jQput</title>
<meta http-equiv="Content-Script-Type" content="text/javascript">
<style type="text/css">
@import url(../../node_modules/easydav-jqput-pmb/jqput.css);
form {
font-family: sans-serif;
min-height: 80vh;
border: 2px dashed silver;
padding: 1ex;
}
</style>
</head><body>
<form action="x-nope://" class="easydav-jqput" target="_blank">
<input type="file" name="file_blob" class="reset-form"><!--
If it has the "reset-form" class, the form will be reset
after a file is selected. -->
<span class="drag-drop-hint">(Or just drag&drop files here.)</span>
<input type="hidden" name="dest_prefix"
value="/dav/uploads/"><!--
URL prefix for uploads. empty = same dir as this HTML. -->
<input type="hidden" name="dest_user"
value="">
<input type="hidden" name="dest_pass"
value=""><!--
If any of dest_user and dest_pass is non-empty, send the the AJAX request
with an HTTP login. If you need both to be empty, that's not supported,
but you can try adding an "Authorization: Basic Og==" header. -->
<input type="hidden" name="dest_headers" value="
X-Upload-Tool: easydav-jqput-pmb
X-Foo-Bar: qux
# I'm a line comment.
X-Caveats: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/setRequestHeader
"><!--
Add custom headers to your AJAX request. Read about the caveats. -->
<ul class="uploads">
<li class="file err">
<span class="status">405 Method Not Allowed</span>
<span class="orig-fn">dummy.txt</span>
→ <a class="dest-fn" href="#">0000.dummy.txt</a></li>
<li class="file wip">
<span class="status"><progress min="0" max="10" value="3"
>30.00%</progress></span>
<span class="orig-fn">dummy.txt</span>
→ <a class="dest-fn" href="#">0000.dummy.txt</a></li>
<li class="file sxs"><span class="status">201 Created</span>
<span class="orig-fn">dummy.txt</span>
→ <a class="dest-fn" href="#">0000.dummy.txt</a></li>
</ul>
</form>
<script src="../../node_modules/jquery/dist/jquery.min.js"></script>
<script src="../../node_modules/easydav-jqput-pmb/jqput.js"></script>
</body></html>