ActiveXPowUpload 1.2.0.5
FileItem object properties |
![]() ![]() |
FileItem object provides a way to access individual elements of the file list. Each element either represents a file or a folder. See IsFile property to know exact. You cannot create an FileItem object directly. You must obtain it from GetItem() method of the ActiveXPowUpload object.
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 {set/get}
Determines whether the item is selected (highlighted) in the list.
Determines whether the item is selected (highlighted) in the list and allows to change selection.
var isSelected=ActiveXPowUpload.GetItem(0).Selected; // select the first item of the list ActiveXPowUpload.GetItem(0).Selected = true;
Bool Focused {set/get}
Determines whether the item has the focus in the list.
Determines whether the item has the focus in the list and allows to change the focus. Only one item in a list may have the focus, but it is possible that none has the focus.
var isFocused=ActiveXPowUpload.GetItem(0).Focused; // set the focus to the first item of the list ActiveXPowUpload.GetItem(0).Focused = true;
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:
Existing disk structure: C:\dir1\dir2\file1 C:\dir1\dir2\file2 C:\file3 1. File selected explicitly: "C:\dir1\dir2\file1" SelectedPath = "file1", RootPath = "C:\dir1\dir2\" 2. Folder selected: "C:\dir1\dir2\" SelectedPath = "dir2\file1", RootPath = "C:\dir1\" SelectedPath = "dir2\file2", RootPath = "C:\dir1\" 3. Disk root selected: "C:\" SelectedPath = "dir1\dir2\file1", RootPath = "C:\" SelectedPath = "dir1\dir2\file1", RootPath = "C:\" SelectedPath = "file3", RootPath="C:\" Complete network share structure: \\srv\share\dir1\dir2\file1 \\srv\share\dir1\dir2\file2 \\srv\share\file3 1. Network share folder selected: "\\srv\share\" 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;