Gets a relative path of this file when it is uploaded as a part of a folder.
Namespace:
Aurigma.ImageUploaderFlash
Assembly:
Aurigma.ImageUploaderFlash (in Aurigma.ImageUploaderFlash.dll)
public abstract string RelativePath { get; }
This property works only if the folder upload feature is turned on (ImageUploaderFlash.FolderProcessingMode 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
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 property will contain My Documents\My Photos\
value and the SourceName - 00001.jpg
.