Category "file-extension"

Mobile browsers are adding .html to filename on download

For some reason, with this code: header("Content-Type: text/x-vcard;charset=utf-8;"); header("Content-Disposition: attachment; filename=card.vcf"); header("Prag

How to deal with files with no extension in Python

I am currently writing a script for work, which goes through every file in a directory and its many sub directories and counts the amount of lines in each file.

Get the extension from a MimeType

I want to get the extension from a MimeType. For example: video/mp4 ----> mp4 application/x-rar-compressed ----> rar text/plain

How to open a .data file extension

I am working on side stuff where the data provided is in a .data file. How do I open a .data file to see what the data looks like and also how do I read from a