By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,742 Members | 1,033 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,742 IT Pros & Developers. It's quick & easy.

Problem with URI type

P: n/a

I've been trying out the ftp upload functionnalities of the
WebRequestMethods.Ftp class.

Using the examples at this site:

I've been able to upload a file to my destination server but I've been
unable to send a file in a directory that is higher up than the home
directory of the ftp user that I have been using.

For example if my ftp user when logged in starts at:


And I want to upload the file to: /tmp on the destination machine I
tried to specify the destination path as:


The Uri class seems to ignore the '..' telling it to go up a directory.
When it uploads the file it sends it to /home/ftpUser.

How do I specify a ftp path so that it knows to start its directory
structure from the / ?

Jul 25 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.