@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD})
public @interface File
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").
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
acceptFileTypes
Comma separated list of accepted mime types.
|
long |
maxFileSizeInKb
Maximum size of the file to upload in Kb.
|