Setup form's attachment field in Liferay 7.2

Iñigo Boyano, modified 5 Years ago. Junior Member Posts: 96 Join Date: 2/4/14 Recent Posts
Hi, I have to check if the attachment field in the new Liferay 7.2 have the next features:
  • It is possible to restrict the maximum size of a file to upload?
  • The files you are going to upload, are checked by the antivirus?
  • It is possible to restrict the extension or mime  of the files?
Kind regards, 
Íñigo
thumbnail
Russell Bohl, modified 5 Years ago. Expert Posts: 308 Join Date: 2/13/13 Recent Posts
Hi Iñigo, since the Upload form field is backed by our Documents and Media service, I believe this type of configuration can be done through the System Settings > Documents and Media > Service configuration entry rather than any Forms configuration. I do not know about the antivirus, but the other two features appear to be configurable there.
Iñigo Boyano, modified 5 Years ago. Junior Member Posts: 96 Join Date: 2/4/14 Recent Posts
Hi, Thanks Russell,
Finally, i found the setup in the new Liferay 7.2. Instead of be located in system administration like LIferay 7.1, now is located where you have mentioned.
About, the antivirus, i've found that Liferay have two properties to enable and configure the implementation of the antivirus.
  • dl.store.antivirus.enabled (to activate/desactivate the antivirus analisys, by default false)
  • dl.store.antivirus.impl (to select which class implementes this analisys, by default dummy implementation). Liferay provides a valid implementation using clamav antivirus, if you need another one, you should have to create your own implementation.
Kind regards