mikeg542 Posted January 16, 2009 Share Posted January 16, 2009 So I use the tutorial from here: http://www.php-mysql-tutorial.com/wikis/mysql-tutorials/uploading-files-to-mysql-database.aspx And when I run the page (I uploaded a jpeg) I just get a page full of �����JFIF���������C� etc. (there's a lot more but I don't want to spam you). Thanks for any help. Quote Link to comment Share on other sites More sharing options...
RussellReal Posted January 16, 2009 Share Posted January 16, 2009 header("content-type: image/jpeg"); Quote Link to comment Share on other sites More sharing options...
mikeg542 Posted January 19, 2009 Author Share Posted January 19, 2009 Well, that would work but I wasn't clear on my goals with this, sorry. It should work on all the supported file types. (pdf, jpeg, gif, txt etc.) Thanks for a response, but now I've fixed my question! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.