Skip to content

Instantly share code, notes, and snippets.

View abdulrafique's full-sized avatar

abdul rafique abdulrafique

View GitHub Profile
@abdulrafique
abdulrafique / gist:9219f7164fdf5dc6dfa8da110be6a04e
Created June 16, 2016 01:46
Sample Code for file upload using Spring and AngularJS
var myApp = angular.module("myApp",[]);
myApp.controller("AppController",['$scope','$http', 'fileUpload', function($scope, $http, fileUpload){
$scope.uploadFile = function(){
var file = $scope.myFile;
console.log('file is ' );