Get detailed information about the files.
An array of objects containing the file ID, the file mimetype, the file name, a boolean indicating if the file is new and the HTML element.
// get the file view upload control
var fileUpload = ix.api.dom.getControl("<FILEUPLOAD-GUID>");
// get detailed information about the uploaded files
var filesInfo = fileUpload.getFilesInfo();
Retrieves the filenames of the uploaded files.
This method returns an array of filenames for the files that have been uploaded using the control.
The filenames are retrieved from the data-filename
attribute of the HTML elements associated with the uploaded files.
An array of filenames of the uploaded files. If no files have been uploaded, it returns an empty array.
// Get the control by its element GUID and retrieve the filenames
const filenames = ix.api.dom.getControl("<ELEMENT-GUID>").getValue();
// Log the filenames to the console
console.log(filenames);
// Example output:
// [ "file1.txt", "file2.jpg", "file3.pdf" ]
Represents a file view control.
The File Selection is a control that allows users to view files that have been uploaded to the server. It provides a user-friendly interface for displaying file names, sizes, and download links.