AT-Type Attach


Property of ATTACH type (Attached).

    <prop name="MAP_TEXTAT" visible="1" type="AT" width="96%" title="Adjunto" />



Some attributes have been incorporated to “limit” the upload files in the type “AT” (Attaching file), “IMG” (Signature), “VD” (Video) and “PH” (Photo).

Attributes:

Attribute Description
file-maxsize=“XXX” Size in bytes, maximum size of the file to be loaded.
file-msgfail=“Mensaje Error” We customize the error if we try to upload a very big file.
file-maxwidth=“800” Maximum width of the photo taken.
file-maxheight=“600” Maximum height of the photo taken.


We must implement file-maxwidth and file-maxheight for the fields of type photo and signature, so that the different devices replicate all the photos and signatures always with the same resolution. This will make the size of the photos more predictable and small, and will avoid memory problems in low-end devices.



Attribute Description
showgallery=“true” By clicking the attachment button, it will show in first place the photo gallery of the device.
path=“/rutaabsoluta/“ By clicking the attachment button, it will show in first place the specified path .


New attribute for the "AT" types


A new attribute has been implemented for the props type=”AT”, allowed-extensions=“pdf;txt”, which indicates separated by “;” the allowed extensions when it is taken to files selection window.