FileItem object properties
Long Index {read only}
0-based index of file at the list.
0-based index of file at the list.
var index=ActiveXPowUpload.GetItem(0).Index; // index of first file at the list. Value should be 0.
String Name {read only}
File name without full path.
File name without full path.
var name=ActiveXPowUpload.GetItem(0).Name;
String Fullname {read only}
File name with a full path.
File name with a full path. Some available values: “c:\some\folder\file.ext”, “\\network_share\some\folder\file.ext”
var path=ActiveXPowUpload.GetItem(0).FullName;
Long Size {read only}
File size.
File size, in bytes.
var size=ActiveXPowUpload.GetItem(0).Size;
Bool Selected {read-only}
Determines if file selected (highlighted) in the list.
Determines if file selected (highlighted) in the list.
var isSelected=ActiveXPowUpload.GetItem(0).Selected;
String SelectedPath {read only}
The relative path of the file if a folder containing this file was selected.
The relative path of the file if a folder containing this file was selected. The relative path starts with the name of the folder that was selected. In case a disk root was selected (e.g. “c:\”) SelectedPath is a path of the file relative to the disk root. In case a network share folder was selected SelectedPath is a path of the file relative to the server. For better understanding of SelectedPath and RootPath properties see examples bellow:
SelectedPath = “file1”, RootPath = “C:\dir1\dir2\”
SelectedPath = “dir2\file1”, RootPath = “C:\dir1\”
SelectedPath = “dir2\file2”, RootPath = “C:\dir1\”
SelectedPath = “dir1\dir2\file1”, RootPath = “C:\”
SelectedPath = “dir1\dir2\file1”, RootPath = “C:\”
SelectedPath = “file3”, RootPath=”C:\”
SelectedPath = “share\dir1\dir2\file1”, RootPath = “\\srv\”
SelectedPath = “share\dir1\dir2\file2”, RootPath = “\\srv\”
SelectedPath = “share\file3”, RootPath = “\\srv\”
String RootPath {read only}
A head of the full file path.
A head of the full file path. Concatenation of RootPath and SelectedPath is FullName i.e RootPath+SelectedPath=FullName. See examples of SelectedPath property.
Date CreationTime {read only}
File creation time.
File creation time.
var cDate=new Date(ActiveXPowUpload.GetItem(0).CreationTime);
Date LastAccessTime {read only}
File last access time
File last access time
var aDate=new Date(ActiveXPowUpload.GetItem(0).LastAccessTime);
Date LastWriteTime {read only}
File last write time.
File last write time.
var wDate=new Date(ActiveXPowUpload.GetItem(0).LastWriteTime);
Bool IsFile {read-only}
Determines if the current item is a file or a folder.
true - it is a file, false - it is a folder.
var isFile=ActiveXPowUpload.GetItem(0).IsFile;