Uploading a single package

If an agent requested to upload the li.sh package to the Plesk-managed server, positive response from the server looks as follows:

<packet>
    <upload>
        <result>
            <status>ok</status>
            <name>li.sh</name>
            <file>/usr/local/psa/tmp/li_8FZruf</file>
        </result>
    </upload>
</packet>

If the uploaded file exceeds the upload_max_filesize directive set in php.ini, the response from the server looks as follows:

<packet>
    <upload>
        <result>
            <status>error</status>
            <errcode>1023</errcode>
            <errtext>The uploaded file exceeds the upload_max_filesize directive set in php.ini</errtext>
            <name>li.sh</name>
            <file>/usr/local/psa/tmp/li_8FZruf</file>
        </result>
    </upload>
</packet>

Uploading multiple packages

If an agent requested to upload li.sh and mybox.sh files to the Plesk server, the positive response from the server looks as follows:

<packet>
    <upload>
        <result>
            <status>ok</status>
            <name>li.sh</name>
            <file>/usr/local/psa/tmp/li_8FZruf</file>
        </result>
        <result>
            <status>ok</status>
            <name>mybox.sh</name>
            <file>/usr/local/psa/tmp/li_8FZrHts</file>
        </result>
    </upload>
</packet>

Note: The interactive schema navigator for all response packets is available here: http://plesk.github.io/api-schemas/1.6.9.1/agent_output.svg.