signal-backup-decode icon indicating copy to clipboard operation
signal-backup-decode copied to clipboard

Use or autodetect MIMEType of file and give it an extension

Open antonizoon opened this issue 6 years ago • 1 comments

Signal has a MIMEType for each image in its sqlite database which is reliable enough to write file extensions for. This is critical since Windows for example relies solely on file extensions to detect file type, and HTTP servers typically does the same.

As can be seen in Signal-back, it writes file extensions for attachment filenames to disk:

https://github.com/xeals/signal-back/blob/7b9bc2112afa24316da1e2c515e067f69f91d5c4/cmd/extract.go#L116

While I would try to use signal-back instead, it crashes on backup dumps of my size (3-5GB).

antonizoon avatar Feb 02 '19 20:02 antonizoon

Hello,

this is fixed in the latest version.

mutlusun avatar Mar 04 '21 07:03 mutlusun