Skip to content

Commit b496cf6

Browse files
committed
clarified some wordings on demo page
1 parent 02a032d commit b496cf6

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

demo/war/common.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,5 @@ button {
8484
font-size: smaller;
8585
color: #777;
8686
padding-top: 5px;
87-
padding-left: 30px;
87+
padding-left: 10px;
8888
}

demo/war/index.html

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,17 @@ <h3>
2525
Visit <a href="https://github.com/danialfarid/angular-file-upload">angular-file-upload</a> on github
2626
</h3>
2727
<div class="upload-div">
28-
<label><input type="radio" name="howToSend" ng-model="howToSend" value="1" ng-init="howToSend = 1">model object to be sent as data to the server with the file: <input type="text" ng-model="myModel"></label> <br/>
29-
<label><input type="radio" name="howToSend" ng-model="howToSend" value="2" ng-disabled="!dropSupported">or send the file binary as data with a POST/PUT request instead of multipart/form-data upload. </label>
30-
<div class="sub">For <a href="https://github.com/danialfarid/angular-file-upload/issues/88">CouchDB</a>,
31-
<a href="https://github.com/danialfarid/angular-file-upload/issues/87">imgur</a>, etc.
32-
Only HTML5 FileReader browsers, cross browser support will be added around Feb 2014 when FileAPI FileReader support is available.
33-
</div><br/><br/>
3428
http method: <input type="radio" ng-model="httpMethod" ng-init="httpMethod = 'POST'" value="POST"/>post <input type="radio" ng-model="httpMethod" value='PUT'/>put<br/>
29+
<br/>
30+
How to upload:<br/>
31+
<label><input type="radio" name="howToSend" ng-model="howToSend" value="1" ng-init="howToSend = 1">Multupart/form-data upload using $upload.upload() service cross browser</label>
32+
<br/>
33+
<label><input type="radio" name="howToSend" ng-model="howToSend" value="2" ng-disabled="!dropSupported">File binary content with the file type as Content-Type header using $upload.http() service</label>
34+
<div class="sub">The second option could be used to upload files to <a href="https://github.com/danialfarid/angular-file-upload/issues/88">CouchDB</a>,
35+
<a href="https://github.com/danialfarid/angular-file-upload/issues/87">imgur</a>, etc... for HTML5 FileReader browsers.<br/>
36+
Option 2 cross browser FileReader and image preview will be added around Feb 2014 when FileAPI FileReader support is available.<br/>
37+
</div><br/>
38+
myModel: <input type="text" ng-model="myModel"> model object to be sent with the file.<br/>
3539
choose a single file: <input type="file" ng-file-select="onFileSelect($files)">
3640
<br/>
3741
or multiple files: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="file" ng-file-select="onFileSelect($files)" multiple>
@@ -73,5 +77,6 @@ <h3>
7377
</ul>
7478
</div>
7579
</div>
80+
<div style="position:absolute;bottom:10px;right:10px;font-size:smaller;color:#777">Last update: 2013-12-30</div>
7681
</body>
7782
</html>

0 commit comments

Comments
 (0)