[Info-vax] HTTP and HTML File Upload Basics
Phillip Helbig undress to reply
helbig at asclothestro.multivax.de
Thu Oct 22 12:40:47 EDT 2020
This might be too specific to the OSU-server, but maybe I can get some
feedback here.
If it's possible with some other programming language, it should be
possible with DCL, right? So if the answer to the first question is
"yes", then the answer to the second should be "yes" as well.
Here is an example page (which uses DCL_ENV_RM.COM which ships with the
OSU server):
<title>upload test</title>
<h1>upload test</h1>
<form method="POST" action="/scripts/dcl_env_rm">
Name:
<input name="name" type="text" size=40 maxlength=80><BR>
Comment:
<input type="text" name="textline" size="30"><BR>
file:
<input type="file" name="datafile" size="40">
<P>
<input type="submit" value="send">
</form>
It lets me choose a file on the system where the web browser is running
and the web server has the name of the file in WWW_FLD_DATAFILE.
What I need now is a procedure to replace DCL_ENV_RM.COM which would
copy the file specified in WWW_FLD_DATAFILE to a directory (could be
hard-coded) on the machine where the server is running. It would be
sufficient if it properly handles just normal text files (even just
7-bit printable ASCII would be enough).
Any ideas?
Many web sites allow one to browse a list of files on a local disk
accessible to the web browser and upload one or more, so this isn't
something really bizarre. My guess is that the OSU server would support
it. The question is whether it can be done without having to install
PHP or whatever. With regard to the scripting language, is there any
reason why DCL shouldn't work?
More information about the Info-vax
mailing list