The upload page finally works!

It's not perfect but it uploads the file to the uploaded directory and
sends the directory name, title and text to the images table in my
database.