Lovin Saini

Technology

File Upload on Amazon S3 server using CURL request :

Use Case : Sometimes we need to upload file on Amazon S3 or need to write code to upload file. As file upload on S3 using API call requires parameters in specific format and debugging that is very cumbersome task, in that case we can use CURL request with the inputs for debugging. Following are the required Inputs for CURL: Date in...

02-Aug-2015

Grails, Spring Events

When details in principal object of spring security are not sufficient

Sometimes we need to access details of current logged in user but that will be an additional database query. To save that query we can use principal object of Spring security which provides details of logged in user . But by default principal object have few fields like id, username and password. If we need to access user's name /...

24-Jul-2015

AWS, Grails

File Upload on Amazon S3 server via HTML Form

Use Case :   File upload was require on web by end user which needs to be frequent and multiple at a time and if it goes through our tomcat server than it would be overhead on server . So for that we directly send the file to S3 server. We can upload file on Amazon S3 Server directly without routing the file through web server by...

20-Apr-2015

Android, AWS

File Upload on Amazon S3 server via REST API call

We Can upload file on Amazon S3 Server directly without intervention of web server by using REST API call on S3 Server. Use Case : File upload was required on mobile app without integrating SDK because integrating SDK causes app to be heavier in size and also if it goes through our web server than it would be unnecessary consumption...

10-Apr-2015