asafdav / ng-s3upload

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

getting 404 on boostrap templates for buttons #72

Closed dgriego closed 8 years ago

dgriego commented 8 years ago

Hi I've installed ng-s3upload via bower and I am getting a 404:

http://myUrl.dev/theme/bootstrap2.html 404 (Not Found)

I have also tried to use a custom path

app.config(function(ngS3Config) {
    ngS3Config.theme = '/path/to/button.html';
});

but it is simply pre-pending 'theme/' to the path resulting in another 404, probably the result of this function:

templateUrl: function(elm, attrs) {
    var theme = attrs.theme || ngS3Config.theme;
    return 'theme/' + theme + '.html';
 }

Have any ideas?

dgriego commented 8 years ago

just noting here that adding a custom theme does not work, I was able to get this to work by changing the template url to return the correct path to the file in relation to my project.