mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-06 23:42:17 +00:00
Question: In Debian11 does not recognize the type #161
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wc7086 on GitHub.
When running transfersh in Debian11, many formats are not recognized, but not all formats are not recognized.
@wc7086 commented on GitHub:
sample.gz
http://transfer.sh/1xqzAJ2/%E6%9E%97%E7%A9%86%20-%20%E5%B0%84%E9%9B%95%E8%8B%B1%E9%9B%84%E4%BC%A0.mp3
@wc7086 commented on GitHub:
I found that gz files will not show the type either.
@paolafrancesca commented on GitHub:
I cannot reproduce, could you share the file?
mime type is inferred by the file extension: https://github.com/dutchcoders/transfer.sh/blob/master/server/handlers.go#L513
can you send a screenshot of the PUT request from network tab in the browser?
@wc7086 commented on GitHub:
Using web upload, uploading the same file in the old version will not have this problem.
@paolafrancesca commented on GitHub:
how did you upload the file?
@wc7086 commented on GitHub:
I tried several formats again and found that none of them could be recognized. There is a problem with the recognition format. I use Edge
92.0.902.78.@wc7086 commented on GitHub:
Sorry, I forgot to mention my system version. After testing. This problem seems to only reproduce on Debian 11.
@paolafrancesca commented on GitHub:
https://play.golang.org/p/wiKZKLyeLrK
on unix go reads the mime type from this set of files:
https://github.com/golang/go/blob/go1.16.7/src/mime/type_unix.go#L19-L24
without proper content of those files only these are the extension with results:
https://github.com/golang/go/blob/go1.16.7/src/mime/type.go#L60-L76
what do you have on your system?
@wc7086 commented on GitHub:
When running transfersh in Debian11, many formats are not recognized, but not all formats are not recognized.
@paolafrancesca commented on GitHub:
I've tried all the files you sent me on my own instance with v1.3.0 and the type is correct.
What binary are you using?
I've installed https://github.com/dutchcoders/transfer.sh/releases/download/v1.3.0/transfersh-v1.3.0-linux-amd64
Can you try locally?
@paolafrancesca commented on GitHub:
can I close the issue @wc7086 ?
@wc7086 commented on GitHub:
Okay, the debian11 mirror does not include the
media-typespackage by default. I now installed themedia-typespackage to solve this problem.@wc7086 commented on GitHub:
I used
find / -name mime.typesand I did not findmime.typesin the Debian11 system.@paolafrancesca commented on GitHub:
try to install
media-typespackage