Initial upload functionality.