app/assets/javascripts/condo/uploader.js in condo-0.0.1 vs app/assets/javascripts/condo/uploader.js in condo-1.0.0
- old
+ new
@@ -249,9 +249,12 @@
check_provider: function(api_endpoint, the_file, params) {
params = params || {};
params['file_size'] = the_file.size;
params['file_name'] = the_file.name;
+ if(!!the_file.dir_path)
+ params['file_path'] = the_file.dir_path;
+
return $http({
method: 'GET',
url: api_endpoint + '/new',
params: params
}).then(function(result){
\ No newline at end of file