forked from FarmMaps/FarmMapsApiClient
		
	updated poten&nbs, both work properly again
This commit is contained in:
		@@ -37,9 +37,10 @@ namespace FarmmapsApi.Services
 | 
			
		||||
            return await _farmmapsApiService.CreateItemAsync(cropfieldItemRequest);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public async Task<Item> UploadDataAsync(UserRoot root, string itemType, string filePath, string itemName, string fieldGeomJson = null) {
 | 
			
		||||
        public async Task<Item> UploadDataAsync(UserRoot root, string itemType, string filePath, string itemName, string geoJsonString = null)
 | 
			
		||||
        {
 | 
			
		||||
            var startUpload = DateTime.UtcNow.AddSeconds(-3);
 | 
			
		||||
            var result = await _farmmapsApiService.UploadFile(filePath, root.Code, fieldGeomJson,
 | 
			
		||||
            var result = await _farmmapsApiService.UploadFile(filePath, root.Code, geoJsonString,
 | 
			
		||||
                progress => _logger.LogInformation($"Status: {progress.Status} - BytesSent: {progress.BytesSent}"));
 | 
			
		||||
 | 
			
		||||
            if (result.Progress.Status == UploadStatus.Failed)
 | 
			
		||||
@@ -50,9 +51,9 @@ namespace FarmmapsApi.Services
 | 
			
		||||
                     i.Name.ToLower().Contains(itemName.ToLower()));
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public async Task<Item> UploadZipWithShapeAsync(UserRoot root, string filePath, string itemName, string fieldGeomJson = null) {
 | 
			
		||||
            var startUpload = DateTime.UtcNow;
 | 
			
		||||
            var result = await _farmmapsApiService.UploadFile(filePath, root.Code, fieldGeomJson,
 | 
			
		||||
        public async Task<Item> UploadZipWithShapeAsync(UserRoot root, string filePath, string itemName, string geoJsonString = null) {
 | 
			
		||||
            var startUpload = DateTime.UtcNow.AddSeconds(-3);
 | 
			
		||||
            var result = await _farmmapsApiService.UploadFile(filePath, root.Code, geoJsonString,
 | 
			
		||||
                progress => _logger.LogInformation($"Status: {progress.Status} - BytesSent: {progress.BytesSent}"));
 | 
			
		||||
 | 
			
		||||
            if (result.Progress.Status == UploadStatus.Failed)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user