• Resolved meggsico

    (@meggsico)


    Hello Expert

    Does anyone know the MIME Type for gpx and kml? The upload is prevented by wordpress for these types. Currently i have adjusted the config.php. For security reasons i would undo these manual adjustments.

    Thx

    Meggs

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your timely question. I’ve been having some new trouble with uploads as well, and here’s an earlier topic along the same lines:

    Can’t add a tgz file

    The PHP “fileinfo” extension doesn’t always return the right MIME type. For example, I tried to import a CSV file that had some HTML tags in one column and fileinfo returned “text/html”, not “text/csv” as it does for most CSV files.

    I don’t have any record of a “GPX” file type, but the “Search Known Types” listing in the Settings/Media Library Assistant Uploads tab does include KML:

    kml application/vnd.google-earth.kml+xml Google Earth – KML

    I’d be surprised if fileinfo got that one right, but I don’t have a file to test it with.

    I am working on some MLA enhancements to improve the situation, and I will post an update here when I have progress to report. Thanks for alerting me to another example of the fileinfo annoyance.

    Thread Starter meggsico

    (@meggsico)

    Hi David

    The adaption for gpx doesn’t work for me. Thank you for your support.
    I am waiting for your update :-).

    Cheers,
    Meggs

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your patience in awaiting progress on this topic. I have added a new “Always Use MLA MIME Type” option to the Settings/Media Library Assistant Uploads tab to override the WordPress “security” checks that cause these uploads to fail. You can find more information in the “Force MLA MIME Type” tab on the dropdown Help menu for the Uploads page.

    I have uploaded a new MLA Development Version dated 20200809 that contains the new option. To get the Development Version you can follow the instructions in this earlier topic:

    PHP Warning on media upload with Polylang

    It would be great if you can install the Development Version and let me know how it works for you.

    Thread Starter meggsico

    (@meggsico)

    Hi David

    I installed the Development Version. It works :-).

    Thx

    Meggs

    Plugin Author David Lingren

    (@dglingren)

    Thanks for taking the time to install and try out the Development Version.

    I have released MLA v2.84, which contains the new “Always Use MLA MIME Type” option. I am marking this topic resolved, but please update it if you have any problems or further questions regarding the new option. Thanks for inspiring this MLA enhancement.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘MIME GPX, KML’ is closed to new replies.