File upload incorrect extension for gpx file

Trying to save a .gpx file on symfony 5

Using $uploadedFile->guessExtension() and $uploadedFile->guessClientExtension() on a .gpx file I get xml and bin

Anyone know the correct way to get the correct .gpx extension ?

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *