Re: Store in SQL - Format of link

  •  04-15-2008, 8:16 PM

    Re: Store in SQL - Format of link

    Hi,
     
    the DB provider and the DownFile.aspx is open source.
     
    You can change the code so that you can provide a new url pattern as you like.
     
    for example, in the SqlFileStorage.cs , modify the public override string GetFileUrl(string filepath)
     
    And you can add mime header when the DownFile.aspx is executed.
     
    for example, in the DownFile.aspx.cs , add Response.ContentType="application/msword"; when the file is *.doc
     
    Regards , Terry .
View Complete Thread