allow gpx-file upload fails
-
Hi!
Trying to allow upload of gpx files.Have search the internet for solutions and tried both:
function my_myme_types($mime_types){ $mime_types['gpx'] = 'application/gpx+xml'; return $mime_types; } add_filter('upload_mimes', 'my_myme_types', 1, 1); function my_myme_types($mime_types){ $mime_types['gpx'] = 'gpx=application/gpx+xml'; return $mime_types; } add_filter('upload_mimes', 'my_myme_types', 1, 1);
But when I try to upload a gpx-file I get the error: “Sorry, this file type is not permitted for security reasons.”
How do i solve this?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘allow gpx-file upload fails’ is closed to new replies.