The plugin only adds the file extension that can upload to WordPress.
So, it doesn’t touch the behavior of the browser when it accesses a GPX file. I think that a part of the content(XML) in the GPX file was displayed when your browser access to it because the GPX file type is XML format.
I think the way to display GPX in WordPress would need to be integrated with a MAP-based system. To simply download the GPX file, you’ll need to change the MIME settings for the GPX file on your web server; application/gpx+xml seems to be the most commonly used, but if not, you’ll need to set application/octet-stream. You had better contact the suppoter of the web server.
Thread Starter
Ruben
(@rubenvankempen)
Hi @kimipooh ,
Thanks for your quick reply.
I would like to able the function to download the GPX file.
How do I change the MIME settings for the GPX file on my web server? Or set application/octet-stream?
Cheers
That feature will be a feature of the webserver, not WordPress.
If you are using Apache as your web server system, and .htaccess allows users to change the behavior of the extension, try adding a setting to the .htaccess file in your WordPress installation directory, as described below.
Reference: How force download .gpx files in an Apache with an Apache Handler?
In detail, please ask the management of the webserver you are using.