Uploading a file with a FORM

Hi experts!!

I did a small form were the user can upload a PDF file.

image

That PDF file will later be processed by a PDF read text activity.

But right now i can’t use this path because the form is returning a path with invalid characters.

example:
image
Path: {“filePath”:“D:\\PROJECTOS BFSI\\DEPOSITO DE PDFS\\FIN_Sara Rodrigues Ribeiro.pdf”,“submit”:true}"

Can someone advice how I can short this out?
Thank you

Hi @Andre_Vieira ,

your query little bit hard to understand. please can you explain it clearly?

and please make a correction while passing the file path.

File path should like this: C:\Users\HP\Desktop

but u entered 2 slashes which is incorrect

Thanks&Regards
NaNi

Can u try to deserialize the json and then extract the file path and see if it is working for your case :blush:

2 Likes

Good, let me try that. Thank you!

1 Like

Hi @Andre_Vieira

You can use replace function to replace the // with /
YourStringVariable.Replace("//","/").

Best regards
Mahmoud

1 Like

Hi again @NIVED_NAMBIAR

job done.
image

image

Thank you

2 Likes

hello @Dawodm thank you for try to help :slight_smile:

1 Like

hello @THIRU_NANI thank you for try to help :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.