Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

156
Views
¿Cómo determinar con javascript si una url que termina sin extensiones es una imagen simple y no un gif?

Estoy tratando de validar las URL y devolver falso si dichas URL devuelven gifs, como estos:

  • https://lh3.googleusercontent.com/nxOF05Y28F2WSBPupmOBgTuSxG-GY1BbhZJyOrjVrjKdAax0VTb4_q4_yDnNsFMTdXPZYpmr19nttJ8c1Pzzd835vOEODQGUvcPG
  • https://lh3.googleusercontent.com/s4a9blztSlDXhjApbdob6CfQ6OUeIiRxb00w9-4Z2Q-6PIp9FGePtI8NBfUfgSgAki3EI2too6zdRyV9qwxdnUWaYLWGgkBa0MN _
  • https://lh3.googleusercontent.com/TJIJhjYUMN2iHsS7Su_WnnfqfbQmJI8y8-zU32-GzYfbDDwofXLMRKk_Q2FTzT096dzDIyptA7-khH2tbCWwbvuWf6V4ITCf3ZncuA
  • https://lh3.googleusercontent.com/4rIhhfLWqB3qUi-BMkXlyMnylwztk-HfOUQhtsmPBtfJKLh2FPNPMgL3YL6Jg0JMopsMcjaevYjXYw8lR9vFRfrZ2rsV7JXPo6mRVws

Sin embargo, no puedo usar expresiones regulares ya que ninguna URL devuelve algo que termine con ".gif".

No tengo idea de cómo verificar el formato de un archivo que se devuelve desde una URL, si dicho archivo no tiene una extensión al final... ¿alguien puede indicarme la dirección correcta?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!