You need to update your event callbacks to accept an argument for the event sent by the control like such:
sender = e.sender.element;
This will give you a reference to the upload control that triggered the event and it's name, id, etc. As for getting to the parent, you will need to provide a more complete example. Here you have a single parent div with an ID...