Search Posts

Category: amazon-web-services

Angular how to download file from S3 Amazon using ng-click

I am trying to download a file from my amazon S3 bucket by using angular ng-click. But instead of file it returns me with blank file on download. HTML <div class=”details-field”> RC Book <font class=”digit” >({{rcCount}})</font> : <i class=”fa fa-angle-down fa-button” ng-click=download() ></i> </div> Angular script var awsUrl = ; $ = function() { $http.get(awsUrl, { responseType: “arraybuffer” }) .success(function(data) { var anchor = angular.element(‘<a/>’); var blob = new Blob([data]); anchor.attr({ href: window.URL.createObjectURL(blob), target: […]

How to install ng on elastic beanstalk

I am new to elastic beanstalk, I am trying to deploy my angular-cli app on node.js elastic beanstalk. I am getting following error. /var/log/nodejs/nodejs.log ————————————- npm ERR! Failed at the [email protected] start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. > [email protected] start /var/app/current > ng serve sh: ng: command not found npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm […]

deploy angular app on aws without using node.js

I have a very simple angular app which I want to deploy on AWS. Currently I have created an ec2 instance with MEAN Certified by Bitnami-3-4-9-0 on Ubuntu. I ssh’d into it and cloned by git repository. But the problem I am facing is I don’t want to run it through node server.I don’t have any npm dependencies and have no need to add node.js. Is it possible to run it without node server? Should […]

Website not updating content and files deployed on AWS

I have an angularjs website Hosted at AWS Elastic Beanstalk. Earlier website had a HTML smart table grid. which we later replaced it with simple table with ng-repeat. For pagination dirpagination.js is used. Everything works fine locally. But when deployed on AWS environment content doesn’t get updated . sometimes Network tab (browser) shows dirpagination cannot be found, while sometimes it loads. Any help would be grateful. Source: AngularJS

how to list all the objects from AWS with the type?

In my AWS s3 bucket I have a folder called my-folder which having 2 files and one folder below is the structure my-folder ——newdata.pdf ——backtick.doc ——jpg ——red-rose.jpg I want to show the same way in front view for users for that I a using angularjs directive. click here based on my response value I have to change the json using aws-sdk I am fetching all the objects here is the code router.get(‘/getall’, function(req, res) { […]

Angular – Error Unknown error has occurred

I am working on a application hosted on Amazon S3 , Seems like a Angular Application , I was trying to setup SSL on Amazon S3 Using cloud front , and after doing that application is suddently throwing error Unfortunately, i was working on production version and not sure whats going on this, the structure inside Amazon look like this. I have no idea whats i have done ? Any help please? Source: AngularJS

Image from Amazon S3 Bucket didn’t display in first request

I am facing a unique problem and I am not able to understand the reason behind this. I have Amazon S3 account and I create bucket where I kept my uploaded images. I am using following code to retrieve the image. My issue is unique because when I am retrieving the image in first request then it is not showing anything on webpage but the image is getting retrieved after subsequent request and display to […]

Retrieve image from Amazon S3 private bucket using Angular JS

I am using Angular JS and WEB API for one of my website. As per requirement of website I am using Amazon S3 to store image in the bucket. I am using WEB API to upload image dynamically in my Amazon S3 Bucket using accesskey and secretaccess key. But now I want to display those uploaded images(not all at once) in website using Angular JS. Please note that bucket is not public. Can anyone please […]

Show pdf and docx in html using angularjs and AWS S3

I’m working with AngularJS and AWS S3 and I’m trying to view the files(.pdf, .docx, .ppt, etc..) in the browser but I’m stuck. I’m trying to use the google docs view: <iframe src=””></iframe> But I’m getting this error in console’s browser and obviously the view of this doc is not working. Anyone know what is happening? Could be a S3 permissions error or maybe its because angularjs doesn’t support it? EDIT: I’ve tried this to […]

Next Page »