Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Setup form's attachment field in Liferay 7.2
Hi, I have to check if the attachment field in the new Liferay 7.2 have the next features:
Íñigo
- 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?
Íñigo
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.
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.
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.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™