summaryrefslogtreecommitdiff
path: root/lib/mediafile.php
AgeCommit message (Collapse)Author
2010-12-22Don't trust text/xml mime types; generic content detection gives useless ↵Brion Vibber
stuff like that on SVG images! Todo: replace the extension check in this case with better content-based checks.
2010-11-08Keep aspect ratio when generating local thumbnailsBrion Vibber
2010-11-08Add attachments 'thumb_width' and 'thumb_height' settings for inline thumbs, ↵Brion Vibber
defaulting to 100x75. This is used as the max thumb width/height for oEmbed requests (replacing the old default of 500x400 which was more suitable for the lightbox).
2010-11-08Save a thumbnail image when uploading an image file into the file ↵Brion Vibber
attachments system. Currently hardcoded to 100x75, needs aspect-sensitivity etc.
2010-11-03Fix for ticket #2853: fix for some unknown MIME type error cases by ↵Brion Vibber
adjusting the PEAR error handling temporarily around MIME_Type_Extension usage.
2010-09-12Update translator documentation and add punctuation where missing to ↵Siebrand Mazeland
exception messages.
2010-09-12Fix i18n issue and add translator documentation.Siebrand Mazeland
2010-06-28Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.xBrion Vibber
2010-06-28Enhanced upload file type detection. If given an original filename, we'll ↵Brion Vibber
attempt to detect type from the extension if we were unable to make a definitive match from content. Generic octet-stream, zip, and MS Office type are explicitly singled out for re-checks, which fixes OpenOffice and MS Office documents to come up with the proper types when misdetected. File extensions can also be added to the upload type whitelist; they'll be normalized to types for the actual comparison, so only known extensions will work.
2010-03-23Use $param instead of hardcoded 'attach' name.Craig Andrews
2010-03-01Modify configuration to have an option to allow uploads regardless of mime typeCraig Andrews
2010-01-10Lots of tiny message changes.Siebrand Mazeland
* Mostly punctuation updates so that the same message is used consistently in all of StatusNet. * Some cases of "Title Case" removed, because that does not appear to be used consistently.
2009-11-02Detect "no file" upload error and, for now at least, ignore it gracefully.Brion Vibber
This was triggering on non-AJAX form submissions for new notices, preventing them from being posted when they contained no attachments.
2009-10-28Fixed header comment.Zach Copley
2009-10-28Rearanged a couple things & removed debugging statementsZach Copley
2009-10-28Rework MailDaemon to use the MediaFile class for uploadsZach Copley
2009-10-27Implement media upload in the APIZach Copley
2009-10-27Extract media upload stuff into its own library class.Zach Copley