Your code won't work as it stands. If you use the code snippet I provided it should work.

Question: Has the "Upload" feature been implemented on the website already? The reason I ask is I just tryed to upload a valid file, and I recieved an internal error. Do I need to be logged in? I tried upping a 200kb zip file, and it appeared to be uploading, but then I recieved the internal error. Any idea why this occured?