asafdav/ng-s3upload

angular attribute does not work

Closed this issue · 5 comments

In the tutorial, you said we can use the template:

I tried, but the attribute does not work, if I changed the bucket="dfsdev" (which is my bucket name), the console report, https://undefined.s3.amazonaws.com/

You didn't wrap your bucket name with apostrophes so angular is trying to find $scope.dfsdev and obviously it can not be found.

bucket="'dfsdev'" will do the trick.

Hi,

I did the following in an angular template

.container
%div{ "s3-upload" => true, "bucket" => "merchant-dev", "ng-model" => "test",
"s3-upload-options" => "{getOptionsUri: '/s3_policy', folder: 'images/'}"}

But there is no visible div. Please help

What template language do you use ?
Did you load the module correctly?
Do you get any error ?

Hey its working now. I use haml. As mentioned above, I also tried with "bucket" => "'merchant-dev'" along with some other tweaks and got it working.

Thanks for the great library

I'm glad, you are welcome.

On Sat, May 31, 2014 at 3:42 PM, aforarup notifications@github.com wrote:

Hey its working now. I use haml. As mentioned above, I also tried with
"bucket" => "merchant-dev" along with some other tweaks and got it working.

Thanks for the great library


Reply to this email directly or view it on GitHub
#21 (comment).