comp.lang.ada
 help / color / mirror / Atom feed
From: Keith Thompson <kst-u@mib.org>
Subject: Re: libcurl with Ada - how to HTTP POST transfer with large file upload
Date: Sat, 14 Sep 2019 15:14:22 -0700
Date: 2019-09-14T15:14:22-07:00	[thread overview]
Message-ID: <ln7e6abk5d.fsf@kst-u.example.com> (raw)
In-Reply-To: 6e41ed01-ad2d-4a51-bc84-36d13be3cafd@googlegroups.com

Matt Borchers <mattborchers@gmail.com> writes:
> You are correct Dmitry.  Thanks.  The multiple examples of code that I
> looked at appeared to set a relative path for the upload folder
> config.  It would actually make more sense for it to BE relative since
> it must be under the web root.  However, as soon as I set the upload
> folder config to be an absolute path, the 500 error code went away.
>
> These are the kinds of things that if commented well in the spec,
> would save people hours of work.  A sentence fragment in the spec that
> said (--must be absolute path) would have saved me a lot of time an
> I'd have the same amount of hair as I did yesterday. However, I would
> prefer if the option recognized it as a relative path and prepended
> the web root folder onto the front.

Is it possible that it *can* be a relative path, but not relative
to what you expected it to be?  If it just passes it as a string
to open/fopen/opendir/whatever, it's probably relative to whatever
happens to be the current directory of the invoking process.

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */

      reply	other threads:[~2019-09-14 22:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-13  3:28 libcurl with Ada - how to HTTP POST transfer with large file upload Matt Borchers
2019-09-13  7:49 ` Dmitry A. Kazakov
2019-09-13 14:51 ` Shark8
2019-09-13 17:41   ` Matt Borchers
2019-09-13 19:13     ` Dmitry A. Kazakov
2019-09-14  2:31       ` Matt Borchers
2019-09-14 22:14         ` Keith Thompson [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox