upload file to dropBox using /files_put javascript
问题 Is it possible to upload a local file to dropbox using http put method ? i am uploading a file but it is without body ? ( "bytes": 0 ) how can i add a content to my file ? my code is the following : $scope.uploadHtmlFile = function() { $http({ method: 'PUT', url: 'https://api-content.dropbox.com/1/files_put/dropbox/test.txt?access_token='+ localStorage.getItem('accessToken') }).success(function(data,status,headers,config){ console.log(data); console.log('file uploaded successfully'); }).error