Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Test if upload is enabled without a file

There's no API in SFTP protocol that could by used by WinSCP (or anything else) to test, if the server is read-only.
davidhenden

Test if upload is enabled without a file

Hellooo,

I want to test if an SFTP server is read-only or accepts uploads.

The first thing that comes to mind is of course to upload a file and see if it returns an error however I do not want to have to create a dummy file to upload.

Is there any way to feed a variable or otherwise trick $session.PutFiles instead of using an existing filepath or is there any other way to solve this?

-David