You have posted it as an Article under the Article / Source code section. I have moved it to the Queries and Discussion forum.

Use thread to upload as it looks like the upload will not allow any other event to get handled.