{ Dev Farm }

Web & Windows Development

GPX file does not exist upon download

Home Forum Wp Gpx Maps Support GPX file does not exist upon download

  • Questo topic ha 8 risposte, 2 partecipanti ed è stato aggiornato l'ultima volta 10 anni, 7 mesi fa da max.
Stai visualizzando 9 post - dal 1 a 9 (di 9 totali)
  • Autore
    Post
  • #22623 Rispondi
    Michael
    Ospite

    Hi,

    I have just created a page with at series of GPS tracks. (http://turglede.org/helgeland-gps-tracks/)
    They turn out correct in my MapSource, then I upload them and add the shortcode to the page. Here they show up correct as well.

    However – if I right-click and “Save link as…” FireFox downloads a file that looks like an HTML file, and IE tells me the file “… couldn’t be downloaded” whereas Chrome says “No file found”.
    If I just click on the link I get a “Sorry, no such page”.

    Looking at the backend the files reside perfectly well in the \wp-content\uploads\gpx\ directory.

    What am I doing wrong here?

    Br

    /Mich

    #22635 Rispondi
    max
    Amministratore del forum

    Where are your uploaded files located?
    Are they inside of wp-content/uploads/.. or somewhere else?

    That gpx should be inside /wp-content/uploads/gpx/Helgeland_20130525.gpx

    #22768 Rispondi
    Michael
    Ospite

    That is where they are. And that is one of the thing that confuses me.

    The file should work, right? Otherwise there would be no track on the map, I assume.
    When I DL the file using FTP it still looks OK.

    I do not believe it is the plugin that is messing things up. Others would probably have reacted to that. I am just hoping for some hints on what to look for.

    I have tried with two different themes to see if the theme ruined it, but it was not.

    Br

    /Mich

    #22773 Rispondi
    max
    Amministratore del forum

    It’s strange, You might have some restrictions in your .htaccess

    http://turglede.org/
    /wp-content/uploads/.htaccess ‘ error 403: no permission
    /wp-content/uploads/ ‘ error 404: file not found
    /wp-content/uploads/gpx/.htaccess ‘ error 403: no permission
    /wp-content/uploads/gpx/ ‘ error 404: file not found

    http://www.devfarm.it/
    /wp-content/uploads/.htaccess ‘ error 403: no permission
    /wp-content/uploads/ ‘ error 403: no permission
    /wp-content/uploads/gpx/.htaccess ‘ error 403: no permission
    /wp-content/uploads/gpx/ ‘ error 403: no permission

    or maybe other security plugins who block the access to the /wp-content/uploads/ folder

    #22776 Rispondi
    Michael
    Ospite

    Hmmm… that somewhat beyond me. 🙁
    I am trying to read up on .htaccess but am not sure what to do.

    Maybe I just remove the DL link or create a direct link manually.

    Thanks, though

    #23086 Rispondi
    Eddieb
    Ospite

    I’m having exactly the same issue since I moved hosting providers, users are presented with the message:
    SERVER ERROR
    404 – File or directory not found.
    The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

    My download links are manually coded as I offer both a 50 point and 250 point GPX trackfile for download to cater for different device capabilities.

    My GPX files are located on the same server in: /wp-content/uploads/gpx/
    Sample page with download links: http://www.adventureridingnz.co.nz/gps-tracks-rides/south-island-tracks/waitahu-river/
    Site is hosted on an IIS7 Windows platform

    I’ve checked my .htaccess at the site level and there’s no references there to the directory in there. I can’t find anything obvious in my server config that may be blocking access. Both the IUSR, IIS_USRS and SYSTEM users have read access to the directory.

    Eddie

    #23087 Rispondi
    max
    Amministratore del forum

    Hi Eddie, can you set temporarily Everyone permission on these files?
    Is there a mime type set for the .gpx extension?

    #23088 Rispondi
    Eddieb
    Ospite

    Hi Max

    You legend! 10 minutes to respond to my query and you came up with the right suggestion first time.

    First thing I checked was the MIME type and there was no entry for .gpx in the IIS settings.
    I created a new entry in the IIS MIME type listings for .gpx and used the MIME type of text/xml, that made the text of the file appear in the browser when the link was clicked.
    I then changed the MIME type to application/octet-stream and now when the link is cicked the user is presented with a ‘file save as’ box, exactly what I wanted.

    Thanks so much for awesome support, it’s a great plugin.
    P.s I did suggest a additional feature on wordpress.org that would make the plugin perfect for me, download the GPX directly to the users connected device 😉

    Thanks again

    Eddie

    #23089 Rispondi
    max
    Amministratore del forum

    Sometimes I’m just really lucky! :good:

Stai visualizzando 9 post - dal 1 a 9 (di 9 totali)
Rispondi a: GPX file does not exist upon download

You can use BBCodes to format your content.
Your account can't use Advanced BBCodes, they will be stripped before saving.

Le tue informazioni:




Non è possibile lasciare nuovi commenti.