Browse Source
			
			
			Merge pull request #64 from grch87/FileBrowser_DeepSleepFix
			
				FileBrowser: fixing deep sleep problem for big file uploads
			
			
				master
			
			
		 
		
			
				
					
						 biologist79
					
					5 years ago
						biologist79
					
					5 years ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
				  
				  No known key found for this signature in database
				  
				  	
						GPG Key ID: 4AEE18F83AFDEB23
				  	
				  
				
			
		
		
		
	
		
			
				 1 changed files with 
2 additions and 
2 deletions
			 
			
		 
		
			
				- 
					
					
					 
					src/main.cpp
				
					
					
						
							
								
									
										
											
	
		
			
				|  | @ -3795,6 +3795,8 @@ void convertUtf8ToAscii(String utf8String, char *asciiString) { | 
		
	
		
			
				|  |  | // requires a GET parameter path, as directory path to the file
 |  |  | // requires a GET parameter path, as directory path to the file
 | 
		
	
		
			
				|  |  | void explorerHandleFileUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) { |  |  | void explorerHandleFileUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) { | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  |     lastTimeActiveTimestamp = millis(); | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |     // New File
 |  |  |     // New File
 | 
		
	
		
			
				|  |  |     if (!index) { |  |  |     if (!index) { | 
		
	
		
			
				|  |  |         String utf8FilePath; |  |  |         String utf8FilePath; | 
		
	
	
		
			
				|  | @ -3828,8 +3830,6 @@ void explorerHandleFileUpload(AsyncWebServerRequest *request, String filename, s | 
		
	
		
			
				|  |  |             &fileStorageTaskHandle  /* Task handle. */ |  |  |             &fileStorageTaskHandle  /* Task handle. */ | 
		
	
		
			
				|  |  |         ); |  |  |         ); | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
		
			
				|  |  |         lastTimeActiveTimestamp = millis(); |  |  |  | 
		
	
		
			
				|  |  | 
 |  |  |  | 
		
	
		
			
				|  |  |     } |  |  |     } | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
		
			
				|  |  |     if (len) { |  |  |     if (len) { | 
		
	
	
		
			
				|  | 
 |