[Extension FtpWebRequest] Error: Invalid URI

Forge Component
Published on 2018-04-13 by Maycon Oleczinski
5 votes
Published on 2018-04-13 by Maycon Oleczinski

I'm trying to use this component but a get this error: Error: Invalid URI: The URI scheme is not valid. I saw there was a topic with this question but seems to be closed.

What do I put in the filename to get this to work?


Hi Vast,

Can you please share how are you passing the parameters , what information is being passed by you in different parameters.

Did you tried what @David mentioned the discussion you mentioned the link above.

string uri = ssHost + ssFilename;

This uri should include the full path to where you want to upload your file, e.g.
host = ftp://xxx.xxx.xxx.xxx:xxx
filename = /directory/myfile.ext

This would create when concatenated the Uri ftp://xxx.xxx.xxx.xxx:xxx/directory/myfile.ext



Hi Vast.

Follow first recomendation performed by PJ (Pramod Jain), pls.

The full URI composed by HOST + FILENAME really needs "/" when concatenated.