cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: [Bug #122381] -C - on upload failed if file does not exist (f wd)

From: Stenberg Björn <Bjorn.Stenberg_at_elema.siemens.se>
Date: Tue, 14 Nov 2000 11:40:41 +0100

> Should curl take every attempt to fulfill a command or is it
> sometimes useful that it fails?

I think that it should take every attempt to fulfill the requested task, and
fail if unable to do so. It should not fall back to a "second best" task
that may surprise the user.

In this case, I do not think the file should be overwritten if it cannot be
appended to. The file might be a 100-megabyte file, painfully uploaded over
a 14k4 modem. A single 550 message should not be allowed to destroy the
existing file.

With small files, it doesn't matter as much. But on a big file, the user
will be very upset if his "append/continue" suddendly, and without his
wanting, became an "overwrite" and he is thrown back to square (byte) 1.

/Björn
Received on 2000-11-14