mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	fix: csv recognition by consumer
paperless-ngx detects the file format via the mime-type based on the response of python-magic which rely on the response of the file command. In version 5.39 (which is shipped with debian bullseye and I think many more non-rolling distributions) of the file command a *.csv will be detected as "application/csv" instead of "text/csv" as in newer versions.
This commit is contained in:
		 Jens van Almsick
					Jens van Almsick
				
			
				
					committed by
					
						 Trenton H
						Trenton H
					
				
			
			
				
	
			
			
			 Trenton H
						Trenton H
					
				
			
						parent
						
							11ad8ada79
						
					
				
				
					commit
					ad6ef7314b
				
			| @@ -11,5 +11,6 @@ def text_consumer_declaration(sender, **kwargs): | |||||||
|         "mime_types": { |         "mime_types": { | ||||||
|             "text/plain": ".txt", |             "text/plain": ".txt", | ||||||
|             "text/csv": ".csv", |             "text/csv": ".csv", | ||||||
|  |             "application/csv": ".csv", | ||||||
|         }, |         }, | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user