@halcy for media_post it should be ("path/to/file.jpg", "image/jpeg") or so, right? Getting a "File has contents that are not what they are reported to be" back from the server
@lydia If you pass a file with a name, it ignores the mime type you specify (this is probably bad and should be fixed) and tries to just guess based on file name
@halcy @lydia this reminds me of a bug I had to fix at work where some node module adamantly refused to open the file to check what type it is and demanded that the filename actually match the contents, meaning you had to explicitly specify the file type yourself if it didn't match; this was reported as a bug multiple times and ignored or closed each time
@andlabs @lydia mind you: I'm not using libmagic or anything (want to avoid dependencies if at all possible), just pythons internal filename-to-mimetype helpers
@halcy @lydia these are all image files, right? I wonder if you could just have a table of FourCCs or something to avoid dependencies outright
Can you post just the line? maybe it's something really dumb, or maybe I broke it in the latest update