Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
7.2k views
in .NET FTP by (1.9k points)
Hello,

I chose to use the "uploaded" event to notify the user of all successful uploads. However, I noticed that even though a file fails to upload the "uploaded" event still fires. I found out the error to be a read only remote disk. So the error I received was error code (553 "Could not create file"). Is there a better technique to detect failed uploads and report ONLY successful ones?

thanks :roll:

9 Answers

0 votes
by (51.6k points)
You're right; this is a pretty glaring weakness. It's quite surprising that noone has pointed that out before given how many people are using it.

We'll fix that up for you so that there's a property called Exception in the event-args, which will be non-null if there was an error during transfer.

If you are able to give us some feedback on the new synchronize functionality as well then we can incorporate any resulting changes in the next version that we upload to the website.

- Hans (EnterpriseDT)
0 votes
by (1.9k points)
Really, well that is definitely strange that no one did find out about that. :)

Anyway, I haven't really given the new synchronization feature a try yet, have lots of stuff to do. I will try my best to try it out soon and get back to you with maybe more suggestions.
0 votes
by (1.9k points)
Hi,

Any news..

Thanks
0 votes
by (162k points)
Yes. Fixed now and released in edtFTPnet/PRO 5.0.0.

Will be released in edtFTPnet/Express 2.0 soon.
0 votes
by (1.8k points)
What checks does this event do?
Is it guaranteed that a file is completely tranfsered when this event is fired?
0 votes
by (51.6k points)
If the Succeeded property is true then the can be reasonably confident that the upload succeeded since that means that the server responded with a code indicating that the transfer completed successfully. If an error occurred then Succeeded will be false and the Exception property will hold a reference to the exception that was thrown. Of course we only know what the server tells us and FTP servers are notoriously variable in the degrees to which they stick to the spec, so it's not impossible that some server mislead us.

- Hans (EnterpriseDT)
0 votes
by (1.8k points)
Is it possible to request a checksum somehow?
0 votes
by (162k points)
No, checksums are not generally a supported feature in FTP. So there is no standard mechanism of obtaining one, unless the server makes it possible via a SITE command. Certainly would be a useful feature to have!
0 votes
by (1.8k points)
Is it possible if the server supports SFTP?
I don't need this feature that bad, but it's just a thought. Maybe for the future.

Categories

...