1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Attachment file names

Discussion in 'XenForo Questions and Support' started by farang, Aug 2, 2016.

  1. farang

    farang Well-Known Member

    Hi there!

    In XF an attached image (originally named filename.png) may be accessed by an URL that looks something like: http://www.example.com/index.php?attachments/filename-png.34/

    My problem is that a specific RSS crawler doesn't recognize http://www.example.com/index.php?attachments/filename-png.34/ as a valid file name for an image. The crawler needs to see the original file name extension ".png" at the end to recognize it.

    Any suggestions how to solve that?

    (I've noticed that I can access the attachment by adding ".png" at the end of the URL, like http://www.example.com/index.php?attachments/filename-png.34/.png But I'm not sure if it's advisable to do that or if the crawler will accept it or not)

  2. Mike

    Mike XenForo Developer Staff Member

    That particular example probably won't work for the crawler as it's in the query string. You would need to use friendly URLs for that to not be in the query string.

    It's probably ok if the attachment loads as expected, though it wouldn't strictly be guaranteed to work as it's not a URL that we generally build. You'd need to get that URL into the crawler manually rather than by some location where we build it.
    farang likes this.
  3. farang

    farang Well-Known Member

Share This Page