To your DB or just to your server? The only way I know for a server is to get an FTP program, which goes fast. But if you want to make a PHP code to do that for you, I know it's possible (i.e.: Geocities upload thingy, like that.) Or do you mean upload files to your DB, cause if you do I have no idea, I'm sure someone here does!
Good luck!