Trenton H
dc642152d1
Standarizes the imports across all the files and modules ( #4248 )
2023-09-23 20:17:01 -07:00
Jens van Almsick
d89443b31d
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.
2022-10-02 16:09:07 -07:00
kpj
c56cb25b5f
Format Python code with black
2022-02-27 15:26:41 +01:00
jonaswinkler
95f5c9f3a6
lazy loading for parsers
2021-02-04 13:17:24 +01:00
jonaswinkler
7658c07b4d
added file type checks to the parsers to prevent temporary files from being consumed. Also: parsers announce file types they wish to use as default for each mime type.
2020-11-30 00:40:04 +01:00
Jonas Winkler
f976a0b4ba
mime type handling
2020-11-20 13:31:03 +01:00
Jonas Winkler
9a48d6c577
Changed the way parsers are discovered. This also prepares for upcoming changes regarding content types and file types: parsers should declare what they support, and actual file extensions should not be hardcoded everywhere.
2020-11-16 23:53:12 +01:00
Daniel Quinn
69fc0d6d80
Fix pycodestyle complaints
2018-09-09 20:55:37 +01:00
Joshua Taillon
cc7a341e75
explicitly add txt, md, and csv types for consumer and viewer; fix thumbnail generation
2018-09-03 23:46:13 -04:00
Joshua Taillon
3c074d9e36
first stab at text consumer
2018-08-30 23:32:41 -04:00