google-drive-ocamlfuse
google-drive-ocamlfuse copied to clipboard
Files directly saved from LibreOffice mislabeled as binary or compressed archive
I am not certain whether the issue is gdfuse or LibreOffice, so I will report to both. Files saved directly to the file system from LibreOffice Writer (7.0.5.2) don't save properly to be previewed through the Google Drive web interface--they are labeled as file type "binary" or "compressed archive". When downloaded and re-uploaded through the web interface, the issue is fixed.
Versions: google-drive-ocamlfuse: 0.7.6.2 LibreOffice: 7.0.5.2 OS: Ubuntu 20.10
Let me know what other information I can provide!
When LibreOffice saves a new file, it creates a temporary file (with .tmp extension), then renames it to the chosen name (with .odt extension, for example). Unfortunately, once a file is created with the Drive API, the associated MIME type cannot be changed anymore. So it keeps the original generic MIME type associated with the generic .tmp extension. Unfortunately there is no workaround to this Drive API limitation.
This is also occurring with the debian package todo.txt-cli.
Seems a bug with Google Drive API, as .tmp extension certainly should not be assumed to be binary.