Skip to content

Commit 95f9768

Browse files
committed
Added Upload button and instructions
1 parent 8a85339 commit 95f9768

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

sample.html

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<head>
22
<meta charset="utf-8"/>
33
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
4-
<title>fileCollection test app</title>
4+
<title>file-collection JS Test App</title>
55
<meta name="description" content=""/>
66
<meta name="viewport" content="width=device-width"/>
77
</head>
@@ -13,8 +13,18 @@
1313

1414
<template name="collTest">
1515
<div class="">
16-
<h3>file-collection Test App</h3>
16+
<h3>file-collection JS Test App</h3>
17+
<ul>
18+
<li>Upload files by clicking 'Upload' or drag your files onto the grid.</li>
19+
<li>Once uploaded you can download the files from the collection by clicking the link.</li>
20+
<li>Delete the files from the collection by clicking the delete button in the name column.</li>
21+
</ul>
22+
<br><br>
1723
</div>
24+
<div>
25+
<button type="button" class="btn btn-success fileBrowse">Upload</button>
26+
</div>
27+
<br>
1828
<div class="fileDrop">
1929
<table class="table table-striped table-bordered">
2030
<thead>

sample.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ if(Meteor.isClient) {
4646
});
4747
});
4848

49-
Template.collTest.onRendered(function assignDrop() {
49+
Template.collTest.onRendered(function onRendered() {
5050
myData.resumable.assignDrop($('.fileDrop'));
51+
myData.resumable.assignBrowse($('.fileBrowse'));
5152
});
5253

5354
Tracker.autorun(function consistentCookie() {

0 commit comments

Comments
 (0)