Basic upload functionality implemented (work in progress).