Package org.openxava.annotations
Annotation Interface File
The user can upload a file in this property, so the file is attached to the entity.
If the uploaded file is an image, an image preview is shown. The user can download the file or see the image (if it is an image) just clicking. The data type is String with a length of 32. Applies to properties.
Example:
@File @Column(length=32) private String document;It's synonymous of @Stereotype("FILE").
- Since:
- 6.6
- Author:
- Javier Paniza
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionComma separated list of accepted mime types.longMaximum size of the file to upload in Kb.
-
Element Details
-
acceptFileTypes
String acceptFileTypesComma separated list of accepted mime types.If the uploaded file does not match with specified types the file is rejected.
For example, with this code:- Default:
- ""
-
maxFileSizeInKb
long maxFileSizeInKbMaximum size of the file to upload in Kb.If the uploaded file is greater than the specified size the file is rejected.
For example, with this code:- Default:
- -1L
-