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: but error occurred while setting the permissions and/or timestamp

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.
matta25

Re: but error occurred while setting the permissions and/or timestamp

martin 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

Re: but error occurred while setting the permissions and/or timestamp

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

but error occurred while setting the permissions and/or timestamp

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