asafdav / ng-s3upload

Upload to S3 using AngularJS
MIT License
190 stars 83 forks source link

How To #45

Open srameshr opened 9 years ago

srameshr commented 9 years ago
<span 
    s3-upload bucket="'myBucketName"
     ng-model="files.first"
     s3-upload-options="{getOptionsUri: 'http://Path/To/Server/'}"
     do-upload="true">
</span>
$scope.files ={
    first : 'http://scotch.io/wp-content/themes/thirty/img/scotch-logo.png'
}

This is not working. I get name is undefined. Because there is no filename.name parameter for the image being returned.

So can, someone explain, how do I choose a local or a remote path to file url as the value to ng-model ?

Example : ng-model="../images/1.png"

srameshr commented 9 years ago

Any answers for this? Will the dataURI be supported?