You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: demo/war/index.html
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -25,13 +25,17 @@ <h3>
25
25
Visit <ahref="https://github.com/danialfarid/angular-file-upload">angular-file-upload</a> on github
26
26
</h3>
27
27
<divclass="upload-div">
28
-
<label><inputtype="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: <inputtype="text" ng-model="myModel"></label><br/>
29
-
<label><inputtype="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>
<label><inputtype="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><inputtype="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
+
<divclass="sub">The second option could be used to upload files to <ahref="https://github.com/danialfarid/angular-file-upload/issues/88">CouchDB</a>,
35
+
<ahref="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: <inputtype="text" ng-model="myModel"> model object to be sent with the file.<br/>
35
39
choose a single file: <inputtype="file" ng-file-select="onFileSelect($files)">
36
40
<br/>
37
41
or multiple files: <inputtype="file" ng-file-select="onFileSelect($files)" multiple>
0 commit comments