passing file name to upload function