Format d'image

Bonjour,
Seriez-vous comment dans une colonne image ne pas accepter d'autre format que .jpg ou . png?
J'ai tenté dans valide If de vérifier les derniers caractères mais sans succès.

Merci d'avance pour votre aide.

Hello,

Do you know how to not accept any format other than .jpg or .png in an image column? I tried validating with an 'if' statement by checking the last characters, but without success.

Thanks in advance for your help.

0 5 182
5 REPLIES 5


@Brice wrote:

Do you know how to not accept any format other than .jpg or .png in an image column?


Could you try using another column where it has something like this in valid if?

IN(
  INDEX(
    SPLIT([ImageColumn], "."),
    COUNT(SPLIT([ImageColumn], "."))
  ),
  LIST(
    "JPG",
    "PNG"
  )
)

I'm not sure it will work though since we don't know what kind of data is saved before the image is actually uploaded. I know there is some conversion internally and that the relative path is added at the end 

Bonjour

Merci pour la réponse. Je vais essayer celà.

Bonjour Brice,

Pouvez-vous nous tenir au jus si cela marche ? J'avais essayé de mon côté il y a quelques semaines mais rien de probant malheureusement.

Malheureusement cela ne fonctionne pas. Voici le résulta
Unfortunately, it doesn't work.

Brice_0-1702584273497.png

 

J'ai également tenté :

IF(or(
  RIGHT([Photo d'identité], 4) = ".jpg",RIGHT([Photo d'identité], 5) = ".jpeg",RIGHT([Photo d'identité], 4) = ".png"), "Le format de la photo semble correct.","Attention, le format de la photo n'est pas conforme et ne pourra pas être accepté.")

Je récupère bien l’extension de fichier mais seulement sur la spreadsheet, je n'arrive pas a contrôler le valid if directement dans le formulaire.

Top Labels in this Space