This documentation is for the old version. Go to the latest Upload Suite docs

UploadedFile.RelativePath Property

Gets a relative path to this user-selected file on the client machine.

Syntax

PHP
public function getRelativePath() {
}

Property Value

Type: string

The relative path to this user-selected file.

Remarks

This property makes sense only if the folder upload feature is turned on (Uploader.FolderProcessingMode is upload) and the user-selected file is located inside a subfolder. In that case this property contains a relative path to this file and the SourceName represents its filename. For example, if the user sends a My Documents\My Photos\00001.jpg file its SourceName_i POST field will contain My Documents\My Photos\00001.jpg value. However, the RelativePath property will contain My Documents\My Photos\ value.

See Also

Reference

Manual