Publish Content URL's.

Discussion in 'Modding' started by Jonathon LeFaive, Apr 6, 2015.

  1. Jonathon LeFaive

    Jonathon LeFaive Registered

    Joined:
    Jan 11, 2012
    Messages:
    70
    Likes Received:
    0
    I just want to clarify that the download url's that you submit when publishing content need to be links to the actual .rfcmp file and not to an html page. For example, dropbox urls need "?dl=1" appended to them, or in most browsers you can right click on the blue download button and select copy link address.

    I went ahead and fixed all of the invalid dropbox urls, but there are still some bad links from other hosts still up there.
     
  2. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    40
    With my GetMod service I do some string work for Dropbox URLs. So a standard link like this:
    https://www.dropbox.com/s/61utzv46hllrx4o/GetModMgr.exe?dl=0

    Would turn into this:
    https://dl.dropbox.com/s/61utzv46hllrx4o/GetModMgr.exe

    Then it becomes a direct link. That way the end user doesn't need to know how to make a truly direct link. The problem is from time to time Dropbox changes their URL scheme and I have to update my code again. And it isn't practical to code around every file hosting service out there. Luckily Dropbox hasn't change in a while and it seems to be the most popular service being used on my service.
     
  3. Jonathon LeFaive

    Jonathon LeFaive Registered

    Joined:
    Jan 11, 2012
    Messages:
    70
    Likes Received:
    0
    I was unaware of dropbox's dl subdomain.

    I have been thinking about doing some heuristic suggestions based on the url. I've also considered making a head request to the url and validating based on the content-type header of the response. I'll probably implement the latter before the former, since as you said, there are many hosts out there and the urls are likely to change.
     
  4. INTEL48

    INTEL48 Registered

    Joined:
    Apr 10, 2013
    Messages:
    229
    Likes Received:
    1
  5. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    3,958
    Likes Received:
    2,808
  6. INTEL48

    INTEL48 Registered

    Joined:
    Apr 10, 2013
    Messages:
    229
    Likes Received:
    1
    thanks redapg, didn't work...probably have to wait for an ISI expert to reply with answer
     
  7. Juergen-BY

    Juergen-BY Registered

    Joined:
    Jun 16, 2012
    Messages:
    3,089
    Likes Received:
    440
    AFAIK you need a Mediafire Pro Account to use Mediafire with GetMod.
     
  8. INTEL48

    INTEL48 Registered

    Joined:
    Apr 10, 2013
    Messages:
    229
    Likes Received:
    1
    has nothing to do with getmod, getmod works perfect, don't need a pro acc for it to work,......... this is about publish content URL for mediafire
     

Share This Page