Uploading a single package
If an agent requested to upload the li.sh package to Plesk server, the positive response from the server looks as follows:
<packet version="1.3.4.0">
<upload>
<result>
<status>ok</status>
<name>myfile</name>
<file>/usr/local/psa/tmp/li.sh</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 version="1.3.4.0">
<upload>
<result>
<status>error</status>
<errcode>1023</errcode>
<errtext>The uploaded file exceeds the upload_max_filesize
directive set in php.ini</errtext>
<name>myfile</name>
<file>/usr/local/psa/tmp/li.sh</file>
</result>
</upload>
</packet>
Uploading multiple packages
If an agent requested to upload li.sh and mybox.sh files to Plesk server, the positive response from the server looks as follows:
<packet version="1.3.4.0">
<upload>
<result>
<status>ok</status>
<name>myfile</name>
<file>/usr/local/psa/tmp/li.sh</file>
</result>
<result>
<status>ok</status>
<name>mybox</name>
<file>/usr/local/psa/tmp/mybox.sh</file>
</result>
</upload>
</packet>