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 185
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