Hey,
For your first problem with the sql INSERT INTO, I'm afraid I found a missing comma. I hope this thing must have been fixed in your actual php page. But thought I should point this out..
$query = "INSERT INTO UploadedFiles (name, size, type, content, keyword, description)
VALUES ('$fileName', '$fileSize', '$fileType', '$content', '$keyword' '$description')" or die(mysql_error());
There is a MISSING COMMA in between '$keyword' '$description'
Check it out.
I'll look into the second problem of yours, I'm a beginner, so I'm not sure I can catch it.
Cheers!