Problem with setting specific field type of gpx file
-
Hi. I’ve created a post type of Walk and added a field to that post type called “gpx filename” which represents GPS track of the Walk (basically a series of lat/long coordinates in XML format in a text file with extension .gpx).
I’ve set the field type to File / Image / Video and under Additional Field Options set Restrict File Types to Other and set Allowed File Extensions to gpx.
However when I use this to create a Walk and click on the file button beside gpx filename, it doesn’t show me the gpx files which are in the media library. It lets me upload a gpx file and select it, but after clicking the Add File button it doesn’t appear back in the Walks pod.If however I set the Allowed File Extensions to gpx,pdf then I see the gpx files in the media library (as well as pdf and doc files) and I can select them ok. Uploading the file works ok. Add file works ok, and I can see the file when it puts me back to Walks.
So I know that I can manage things this way, but it would be nice to have the finer level of file extension validation when the administrator is adding Walks. Am I missing something? Is there something else I need to do to make this work?
I’m running pods version 2.6.7, on both my local machine (windows 10) and a server. I needed to change wp-config.php on the server to allow gpx uploads (where I set the mime type to application/gpx+xml) but nothing was needed on my localhost.
Thanks for your help
Robbie
- The topic ‘Problem with setting specific field type of gpx file’ is closed to new replies.