About this topic

  • Posted by fbosman 1 month ago. There are 3 posts. The latest reply is from fbosman.
  1. Hi,
    I'm setting up a Blog so that I can send mails with my blogs, images and gpx-tracks. The gpx-file is sent as an attachment and is stored in the upload-directory. However it seems that the content is altered as I cannot render a map out of out.
    The stored file containts (partly):
    <?xml version=3D"1.0" encoding=3D"UTF-8" standalone=3D"no" ?><gpx =
    xmlns=3D"http://www.topografix.com/GPX/1/1" =
    xmlns:gpxx=3D"http://www.garmin.com/xmlschemas/WaypointExtension/v1" =

    The original file containts:
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?><gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:gpxx="http://www.garmin.com/xmlschemas/WaypointExtension/v1"

    does Postlie change the attachment and what can I do to avoid this problem?

    regards,

    Frans

  2. I found one of the couses: The filename delivered by my Garmin GPSmap 62s is like "Spoor_03-MEI-11 171534.gpx". Postie replaces the space in the filename by a dash "-" in the upload-directory but not in the generated link in the post.
    I cannot pinpoint the issue in the code. Can this be solved?

  3. I found the cause!
    In wp_unique_filename there is a call to sanitize_file_name. This one replace spaces in the filename in dashes. As this is only called in composing the filename for the upload-directory and not in the link in the post they are not the same! What is the best solution for this?

RSS feed for this topic

Have you read the FAQ?
Have you tried the latest development version (at the bottom)?

Reply

You must log in to post.