Always when i upload a file in a server, the file is stored correctly, but it's not saved in the database and the javascript alert returns me an error like this: 'An error has occurred on uploading'.
1) The file is uploaded correctly, just don't save in database and JS return the error.
2) In my local server everything works fine, the problem is on the server cloud (hostgator).
What should i do ?