Maybe it will work this time. When you try to upload a file it doesnt seem to save in the database. I fixed the problem that I mentioned to Ciaran about the database so it seems the problem is just in the code, thats why saving images through the site wont work, because I think it works if you do it through the shell.