From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.ada Subject: Re: libcurl with Ada - how to HTTP POST transfer with large file upload Date: Sat, 14 Sep 2019 15:14:22 -0700 Organization: None to speak of Message-ID: References: <96ceadae-90dd-4781-9223-3a50ad1668ef@googlegroups.com> <7241c566-26bf-4f66-b808-bb2ddcc5ff10@googlegroups.com> <6e41ed01-ad2d-4a51-bc84-36d13be3cafd@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="a1646d9a2f52180c7e8091fb1fb915b6"; logging-data="9236"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX186JNPx2AE/+VK1hVfZa+Mq" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:NeuUVAJ2taKLVnrgSQKohf7lWNQ= sha1:hENJNYr5AG9gWakTIhTDNhY5oV4= Xref: reader01.eternal-september.org comp.lang.ada:57151 Date: 2019-09-14T15:14:22-07:00 List-Id: Matt Borchers 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 Will write code for food. void Void(void) { Void(); } /* The recursive call of the void */