Upload Files Button: Conversion from ASPX to HTML and TypeScript
The following tables will help you to convert the ASPX elements that are related to the upload files button control to HTML or TypeScript elements.
PXFileUploader
The following table shows the correspondence between the PXFileUploader element and the HTML or TypeScript elements. During the conversion of ASPX pages to HTML and TypeScript, you need to replace these ASPX elements with their analogs in HTML or TypeScript.
ASPX | HTML or TypeScript |
---|---|
PXFileUploader
|
To attach files to a record, use the qp-multi-upload tag in
the HTML template.
|
ID
|
Use the id property, which is available in the
config attribute of the qp-multi-upload
control.
|
AllowedTypes
|
Use the accept property, which is available in the
config attribute of the qp-multi-upload
control.
|
SelectFileMessage
|
Neither TypeScript nor HTML provide an equivalent property that can be used to
customize the text that is displayed on the qp-multi-upload
control. However, you can specify this text between the opening tag and the closing
tag of the control, as shown in the following code
example.
|