Response Samples

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>
 

Leave your comments on this page

Leave your feedback or question on this documentation topic below. For technical assistance, contact your hosting service provider or submit a request to Plesk support. Suggest new features for Plesk here. Discuss general questions on the Plesk forum. All offtopic comments will be removed.