-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathIndex.vbhtml
More file actions
26 lines (23 loc) · 741 Bytes
/
Index.vbhtml
File metadata and controls
26 lines (23 loc) · 741 Bytes
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
AJAX Uploading:
<div id="uploadContainer"></div>
Form Submit Uploading:
@Using (Html.BeginForm("Submit", "Home", FormMethod.Post, New With {.enctype = "multipart/form-data"}))
@<div id="formUploadContainer"></div>
@<input type="submit" />
End Using
<script type="text/javascript">
$("#uploadContainer").dxFileUploader({
buttonText: 'Select file',
labelText: 'Drop file here',
multiple: true,
accept: 'image/*',
uploadUrl: '@Url.Action("FileUpload", "Home")'
});
$("#formUploadContainer").dxFileUploader({
buttonText: 'Select file',
labelText: 'Drop file here',
multiple: true,
accept: 'image/*',
uploadMode: 'useForm'
});
</script>