XF 1.5 Attachment file names

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)

Thanks!
 
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.
 
Top Bottom