Hi All, Now that I've got file upload working, does anyone know if it's possible to set the Content-Type to anything but the default of application/octet-stream? (Why Have Adobe done that?!)
I've been using a PHP script to put files into mySQL tables and I always used to query the data in the POST for it's mime-type $fileType = $_FILES['fileData']['type']; and then use it when I fetched the file from the table so that the browser would know what to do with it - now I can't do that and all files will be treated the same. :-( Any ideas? (I'm guessing I'll just have to use the full filename to "guess" the mimetype (e.g. if (*.jpg||*.jpeg) {mime="image/jpeg"}else{mime might be "image/jpeg" but who knows}) since everything apart from Mac files don't have a creator property) Cheers, Phil -- ______________________________________________________________ Phil Marston Learning Technologist Learning Technology Unit Edward Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, UK [EMAIL PROTECTED] Tel: +44(0)1224 273329 / +44(0)7798 723660 http://www.abdn.ac.uk/diss/ltu/pmarston/ http://www.abdn.ac.uk/diss/ltu/ ______________________________________________________________ The University of Aberdeen Open Day 29th August 2006 Booking is essential www.abdn.ac.uk/openday email [EMAIL PROTECTED] or call 0800 027 1495 ------------------------ Yahoo! Groups Sponsor --------------------~--> Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/