title: Store images in directories and store a reference to the images in the database
body: <p>I am currently involved in a project to create a website which allows users to share and rate images, for their creative media course. </p>
  
  <p>I am trying to find ways to save images to a mysql database. I know i can save images as blobs, but this won't work as i plan on only allowing users to save high res images. Therefore, i've tried to find out how to store images in a directory/server folder and store references to the images in the database. An added complication to he matter, is that the reference must automatically save within a mysql database table.</p>
  
  <p>Does anyone know how to go about this? or point me in the right direction?</p>
  
  <p>Thanks!</p>