added path property to createAndUpload method