Topic "but error occurred while setting the permissions and/or timestamp"

Author Message
matta25
[View user's profile]

Joined: 2016-05-02
Posts: 3
Location: Ohio
Hello,
I am getting the warning message "**Upload of file '...' was successful, but error occurred while setting the permissions and/or timestamp.**
If the problem persists, turn off setting permissions or preserving timestamp. Alternatively you can turn on 'Ignore permission errors' option.
Error code: 3
Error message from server: This server does not support operations to modify file attributes.")

I am trying to do this in my vb.net code Yet the third like it does not like the NULL. Any Ideas on how to correct this?
Dim transferOptions As New TransferOptions
transferOptions.TransferMode = TransferMode.Automatic
transferOptions.FilePermissions = Null
transferOptions.PreserveTimestamp = False

Thanks
Matt
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
matta25 wrote:
Yet the third like it does not like the NULL.

Do you mean "third line"?
What does it mean "does not like the NULL"?
And you do not have to set the FilePermissions to NULL, it's the default value anyway.
matta25
[View user's profile]

Joined: 2016-05-02
Posts: 3
Location: Ohio
prikryl wrote:
matta25 wrote:
Yet the third like it does not like the NULL.

Do you mean "third line"?
What does it mean "does not like the NULL"?
And you do not have to set the FilePermissions to NULL, it's the default value anyway.



I fond this in another post transferOptions.FilePermissions = Nothing I did not get an error in VB like I did for NULL and in my FTP log it shows:
put -nopermissions -nopreservetime -transfer="automatic" -- "C:\test\test.txt" "/"

No error.
Thanks
Matt
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Yes, indeed it's Nothing in VB.NET, not Null.

Though again, you do not have to set the FilePermissions to Nothing as that's the default value.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License