Thread Bitte um Tests: Attachments
(38 answers)
Opened by pq at 2011-07-31 16:32
hm, mht-dateien werden von LibMagic als text/html erkannt. das ist ja eigentlich nicht ganz richtig. `file` sagt stattdessen multipart/related.
weisst du, was richtig wäre? js-dateien werden als text/x-c erkannt, und css als text/plain. bei allen 3 typen müsste ich also zusätzlich die endung mit anschauen und den mimetype danach festlegen. Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: ![]() ![]() |