---
title: "Task ps-upload-get (obsolete)"
source: https://dev.pageseeder.com/reference/version_5/ant_tasks/task_ps-upload-get.html
last_updated: 2026-08-11T16:09:28+10:00
tokens: ~820
---

# Task ps-upload-get

Used in upload processing scripts to download documents from the Loading Zone for the current user in the specified group.

> **Obsolete:** This task has been removed as of PageSeeder v6. Use [Task loadingzone-get](../../../guide/publishing/ant_api/tasks/task_loadingzone-get.md) instead.

## Definition

```xml

   <ps:ps-upload-get
            destination="[destination]"
            group="[groupName]"
            path="[path]"
            jsessionid="[jsessionid]"
            port="[port]"
            host="[host]"
            siteprefix="[siteprefix]"
            servletprefix="[servletprefix]"
            output="[output]"
            failonerror="[true|false]"/>
```

## Attributes

| **Attribute** | Description | Required |
| --- | --- | --- |
| **jsessionid** | The `@jsessionid` attribute (optional) is used for authentication. It is not required but it will always be used if specified. | Yes, unless **username/password** or **propertiesfile** are specified |
| **username** | If `@jsessionid` attribute is not specified this can be used for authentication. | Yes, unless **jsessionid** or **propertiesfile** are specified |
| **password** | If jsessionid is not specified this can be used for authentication. | Yes, unless **jsessionid** or **propertiesfile** are specified |
| **propertiesfile** | The `@propertiesfile` attribute (optional) describes the location of the properties file to use to connect to the PageSeeder Server. The value of the attribute can be the full path of the file, the relative path (the base directory is the location of the Ant script) or simply its name, in which case it MUST be located on the classpath. | Yes, unless **(jsessionid** or **username/password)** and **host** are specified |
| **port** | The port address of the PageSeeder Server - default: 80 *(used when no properties file is specified)* | No |
| **host** | The host name of the PageSeeder Server *(used when no properties file is specified)* | Yes, unless **propertiesfile** is specified |
| **siteprefix** | The PageSeeder site prefix defined - default: /ps *(used when no properties file is specified)* | No |
| **servletprefix** | The PageSeeder servlet prefix defined - default: /servlet *(used when no properties file is specified)* | No |
| **destination** | The `@destination` attribute is the full path of the folder where the file will be downloaded, if it does not exist, it will be created. If creation fails, an error will be raised. | Yes |
| **group** | The name of the group the Loading Zone is in. | Yes |
| **path** | The `@path` attribute is the path in the Loading Zone of the file to download (not URL encoded). | Yes |
| **output** | Location of the output file. This is meaningful only when the path to download points to a folder (ends with "/"). The output file will contain the list of URIs downloaded. | No |
| **failonerror** | Whether to fail if file can not be downloaded from loading zone (default true). | No |

## Examples

```java

<ps:ps-upload-get
     destination="${download}"
     path="${ps-uploadPath}"
     group="${ps-groupName}"
     jsessionid="${ps-jsessionid}" 
     host="${ps-host}" 
     port="${ps-port}"
     servletPrefix="${ps-servletPrefix}" 
     sitePrefix="${ps-sitePrefix}">
```

