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

Image URLs

Discussion in 'XenForo Questions and Support' started by Crazyfruitbat, Dec 18, 2010.

  1. Crazyfruitbat

    Crazyfruitbat Well-Known Member

    hey guys, quick question.

    Because I have a website based around photography sometimes I need to grab the URLs of the pics that the users have uploaded to post them in other areas of the site (like wordpress) or for email newsletters etc.

    The problem I have is that it I don't have a url ending in jpg. for example:
    So I can't use the url in other softwares etc. Now I know I can download the pic and just save them but that takes a huge amount of time if I have 20 or 30 pics and do this every week etc

    Is there anyway to get the direct link?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Do you require an actual image file extension in the URL? I don't see any easy way to do this.

    The actual data files in the file system have a ".data" file extension, so a direct URL to the data file would do you no good.
  3. Crazyfruitbat

    Crazyfruitbat Well-Known Member

    cheers Jake, yeah so in instead of me re-uploading the images to wordpress as well I would just like to have the standard jpg URL
  4. Mike

    Mike XenForo Developer Staff Member

    You really need to save the image as an actual file to do what you want. The main reason isn't the URL - you don't need it to end in .jpg provided you're using the URL from XF - the main reason is permissions. Unless you've changed them, guests won't be able to see the (full size) attachments.

Share This Page