feat: add mime validator
This commit is contained in:
@@ -22,6 +22,20 @@ public class Photo {
|
||||
private String uuidFichier;
|
||||
private LocalDateTime dateUpload;
|
||||
|
||||
// Type MIME détecté (pour header HTTP Content-Type)
|
||||
@Column(length = 100)
|
||||
private String mimeType;
|
||||
|
||||
// Taille du fichier en bytes
|
||||
private Long tailleFichier;
|
||||
|
||||
// Métadonnées du fichier
|
||||
@Column
|
||||
private Integer largeur; // Largeur de l'image en pixels
|
||||
|
||||
@Column
|
||||
private Integer hauteur; // Hauteur de l'image en pixels
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private Visibilite visibilite;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user