Overwriting on PutFile - WeOnlyDo Discussion board

Overwriting on PutFile (General questions)

by goondoo27, Thursday, October 14, 2004, 00:20 (7346 days ago)

When using .PutFile with a filename that already exists on the server, the _Done event is fired with ErrorCode = 40550 and ErrorText = Access denied.

I could first read the directory to see if my file already exists and then do a .DeleteFile before I send it, but I was wondering if there was an easier way.

Thanks,
John

Re: Overwriting on PutFile

by wodSupport, Thursday, October 14, 2004, 00:22 (7346 days ago) @ goondoo27

Gondoo,

this goes outside of component's scope - it acts on your requests, and it's up to you to take care of errors. Adding such functionality would be too specific - and if we go into that direction, we would need to add 1000 similar small features.

So - you will need to add logic for this by yourself. :(

Regards.

Re: Overwriting on PutFile

by goondoo27, Thursday, October 14, 2004, 00:27 (7346 days ago) @ wodSupport

Ok.

Thanks for the quick reply.