COPY_FILE_FROM_CLIENT
|
Syntax: |
COPY_FILE_FROM_CLIENT(<Source>,<Destination>)
|
||||||||||||||
|
|
|
||||||||||||||
|
Meaning: |
In
the Java-2T-program this function copies the file <source> from the
client to the file <destination> at the server. If
the program is no 2T-program, COPY_FILE_FROM_CLIENT is identical with COPY_FILE. In Html programs the user has to select the
file. If no file is selected COPY_FILE_FROM_CLIENT returns -2. If a file has
been selected EBUS_DATA$ contains the selected filename. Example: The file daten.dat
has to be copied from the directory c:\temp on the client computer to the
Webserver directory d:\daten. This is done by the following function call in
the macro: RET%
=
COPY_FILE_FROM_CLIENT("c:\temp\daten.dat","d:\daten\daten.dat") In
the browser the following dialog appears:
To
upload the file the user has to click the button 'Browse' and has to select
the specified file. By pressing the button 'Upload file' the file is
uploaded. COPY_FILE_FROM_CLIENT returns the following
values:
|
||||||||||||||
|
Parameter: |
|
||||||||||||||
|
Sample: |
RET% = COPY_FILE_FROM_CLIENT("c:\test.dat","H:\data\test.dat") IF RET% <> 0 THEN ERRORMES = "Error: " + STR$(RET%) + " " + ERRORTEXT$ ENDIF |
||||||||||||||
|
See also: |
|