[Resolved] Upload GPX files with snippet…

Home Forums Support [Resolved] Upload GPX files with snippet…

Home Forums Support Upload GPX files with snippet…

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1325934
    Ian

    Hello
    I am trying to upload GPX files to the media file.
    However, I am getting the usual error message.
    I have (with other websites) managed, with the use of a PHP Snippet (in the Snippet plugin) to upload GPX files.
    But… for some reason, it is not working now.
    I have tried various combinations of meme types including the snippet below.

    function my_myme_types($mime_types){
    $mime_types[‘gpx’] = ‘gpx = application/gpx+xml’; //Adding gpx file
    $mime_types[‘gpx’] = ‘gpx = application/gpx,xml’; //Adding gpx file
    $mime_types[‘gpx’] = ‘gpx = application/gpx’; //Adding gpx file
    $mime_types[‘gpx’] = ‘gpx = application/text+xml’; //Adding gpx file
    return $mime_types;
    }
    add_filter(‘upload_mimes’, ‘my_myme_types’, 1, 1);

    Any help would be fantastic.
    Thank you
    Ian

    #1326536
    Leo
    Staff
    Customer Support

    Hi there,

    This shouldn’t be theme related as GP doesn’t control the media library.

    We don’t have any experience in this either.

    I would recommend posting your question in a site like this and see if anyone has experience:
    https://wordpress.stackexchange.com/

    #1335142
    Ian

    Thank you
    Got it sorted
    Ian

    #1335514
    Leo
    Staff
    Customer Support

    Glad you did!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.