---
title: "UploadedFile.RelativePath Property  HTML5/Flash Uploader PHP"
canonical: https://www.aurigma.com/docs/us8/FH_P_P_UploadedFile_RelativePath.htm
product: "Upload Suite 8"
---

# UploadedFile.RelativePath Property HTML5/Flash Uploader PHP
 
Gets a relative path of this file when it is uploaded as a part of a folder.

## Syntax
 
```
public function getRelativePath() {
}
```
 
### Property Value
 
Type: **string**
 
The relative path to this user-selected file.

## Remarks
 
This property works only if the folder upload feature is turned on ([ImageUploaderFlash.FolderProcessingMode](https://www.aurigma.com/docs/us8/FH_P_P_ImageUploaderFlash_FolderProcessingMode.htm.md) is not `None` or `Skip`). In that case this property contains a path to this file relatively to the parent of the selected folder (i.e. includes the name of the folder). If the user uploads individual files, this property is an empty string. This way you can use it to restore the folder structure on the server.
 
Note, unlike the **SourceName\_*i*** POST variable which contains both the relative path and the filename, the [SourceName](https://www.aurigma.com/docs/us8/FH_P_P_UploadedFile_SourceName.htm.md) property always contains only a filename. For example, if the user sends `My Documents` with a single subfolder `My Photos` which holds a file named `00001.jpg`, the **SourceName\_*i*** POST field will contain `My Documents\My Photos\00001.jpg` value, while the [RelativePath](https://www.aurigma.com/docs/us8/FH_P_P_UploadedFile_RelativePath.htm.md) property will contain `My Documents\My Photos\` value and the **SourceName** - `00001.jpg`.

## See Also
 
### Reference
 
- [Aurigma.ImageUploaderFlash.UploadedFile.RelativePath ASP.NET Property HTML5/Flash Uploader](https://www.aurigma.com/docs/us8/FH_P_Aurigma_ImageUploaderFlash_UploadedFile_RelativePath.htm.md)

### Manual
 
- [Uploading Folders in HTML5 Uploader PHP](https://www.aurigma.com/docs/us8/uploading-folders-in-php-iuf.htm.md)
