[Info-vax] HTTP and HTML File Upload Basics
Arne Vajhøj
arne at vajhoej.dk
Tue Oct 20 15:38:38 EDT 2020
On 10/20/2020 3:28 PM, Phillip Helbig (undress to reply) wrote:
> In article <rmncp5$krr$1 at gioia.aioe.org>, =?UTF-8?Q?Arne_Vajh=c3=b8j?=
> <arne at vajhoej.dk> writes:
>
>> On 10/20/2020 3:05 PM, Stephen Hoffman wrote:
>>> On 2020-10-20 17:32:08 +0000, Phillip Helbig (undress to reply said:
>>>> Does anyone have a basic DCL script which, when called as a script by
>>>> the web server, can upload a file from the browser machine to the server
>>>> machine?
>>>
>>> CGI doesn't get used for this. A CGI-based fetch as you're likely
>>> envisioning here would be routinely blocked network firewalls, among
>>> other details.
>>
>> ????
>>
>> I belive he is asking for:
>>
>> browser---(POST of file)---web server---CGI script---disk file
>
> Right (I think).
>
>> Uploading to a directory not served by the web server
>
> Right.
>
>> and use a download
>> script to get it may be a good thing.
>
> Not sure what that means.
If the web server serves DISK3:[WWW...] and you stuff uploads in
DISK3:[UPLOADS] then the web server cannot serve them and
you can make them available as /download.php?file=foobar
(or /htbin/download?file=foobar).
Arne
More information about the Info-vax
mailing list