Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Fix: NULL MimeType when sending files without extension #270

Merged

Conversation

luguina
Copy link
Collaborator

@luguina luguina commented Jun 21, 2020

To automatically detect the MimeType of the file being sent to the server, the app makes a call to the Files.probeContentType method. ProbeContentType uses the file extension to assign the correct MimeType. As files with error log sent to the server don't have any extension (they have a farm_XXXXXXXXXXXXX pattern) the probeContentType method generates a NULL MimeType.

As logs are plain text files, this PR adds the .txt extension to the log files generated to generate the proper MimeType.

@laurent-clouet laurent-clouet merged commit a4b5493 into laurent-clouet:master Jun 21, 2020
@luguina luguina deleted the fix/null-mimetype-error-file branch June 21, 2020 13:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants