If you're only creating an uploading script, this tutorial will surely interest you.