@NAIR, Jayanth Looking at the reference for this method, it requires the absolute path of the file to be uploaded instead of relative path. Please see this page from reference. Try using the absolute path to check if it works as expected.
Also, the note mentions that this method is deprecated and will no longer be supported. Recommend to use FileDatasetFactory.upload_directory
instead.
From the reference.
fileslist[str] Required A list of absolute paths of files to upload.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.