2020

Table Of Contents
USING QUARKXPRESS SERVER
The following example demonstrates how to use an HTML form to create a POST
request that uses the addfile request handler. The form looks like this:
To use this form:
Enter the name or IP address of the computer on which QuarkXPress Server is 1.
running.
Enter the port number in the port number field. 2.
Enter the file name along with the extension in the file field. Click Browse if 3.
you need to find the file on your computer. The file will be uploaded with this
name.
Click Submit. 4.
The file uploads to the document pool of the specified server. After the file is
successfully uploaded, the “File upload completed.” alert is displayed.
For example, assume you want to upload a file named “Faces.pdf” (located at the
root of the C drive) to an instance of QuarkXPress Server running at IP address
202.201.92.34 and port 8080, and that you want the name of the uploaded file on
the server to be “NewFaces.pdf.” Here’s how you would accomplish this in the
HTML form:
URL. You might use QuarkXPress Manager to add a file if you wanted to
add the file to all registered QuarkXPress Server instances at one time
(assuming the instances are not sharing a single document pool).For more
information, see the “AddFileRequest” .NET, Java, and Objective-C samples
in the QuarkXPress Server Manager SDK samples.
Notes
The following is a sample of a POST request HTML form.<HTML>
<HEAD><TITLE>Test Addfile</TITLE></HEAD> <BODY> File will always
be uploaded with name new.qxp <FORM
ACTION=”http://localhost:8080/addfile/new.qxp” METHOD = “post”
ENCTYPE=”multipart/form-data”> Please select the file you want to
upload: <INPUT TYPE=file NAME=”uploadFile”><br><br> <INPUT
TYPE=submit VALUE=”Submit”> </FORM> </BODY> </HTML>
A GUIDE TO QUARKXPRESS SERVER 2020 | 165