File uploading part 1 - clientside