How to upload each file to website from local folder

I am using for each loop and using local folder path but it not taking the folder path "C:\Folder" @Palaniyappan

Hi @Sudheer_Kumar_S

Can you elaborate your process?

Regards

i am downloading attachments from outlook and saving to local folder, then i need to upload each file to azure portal. So i am saving the files in C:\Folder\ and taking them in for each loop and uploading to azure using uipath azure activities.

Hi @Sudheer_Kumar_S

Is the problem you re facing while saving the attachment?

Regards

No i am facing the problem while uploading the files local folder to azure.

Hi @Sudheer_Kumar_S

What error are you facing while uploading files to azure?

Regards

Hi @Sudheer_Kumar_S

Since you re uploading files using loop print with log message the path before uploading whether is logging the full path!

  • BlobContainer (BlobContainer) - The blob container.
  • BlobName (String) - The name of the blob.
  • Type (Enum) - The type of the blob.
  • UploadVHDFileAsPageBlob (Boolean) - Specify whether to upload .vhd files as page blob (recommended).
  • FileToUpload (String) - The full path to the file to be uploaded.
  • ContentType (String) - The content type.
  • Metadata (DataTable) - Metadata for the blob. It shall contain two columns, the first one representing the name and the second its value.
  • Timeout (seconds) - Specifies the amount of time (in seconds) to wait for the activity to run before an error is thrown. If not set, the activity runs until completion.

Regards

BlobName what should i give ? how to pass the file name to it…?

Hi @Sudheer_Kumar_S

Check with the reference link below!

Regards

this video is not clear

Hi!

If you wants to get the file from folder follow this:

FilePath=Directory.GetFiles(FolderPath,"*.xlsx/pdf/word")

Regards,
NaNi