Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    May 2011
    Posts
    122
    Thanks
    23
    Thanked 0 Times in 0 Posts

    Make a certain extension downloadable

    I am uploading .schematic files to my website and I want to so that if you click Download you download the file instead of getting this: http://forthelols.com/schematics/lloyd.schematic

    Also, sorry if this is in wrong section really don't know where to put this.

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Just make a .htaccess file up
    Code:
    <Files *.schematic>
      ForceType application/octet-stream
      Header set Content-Disposition attachment
    </Files>
    That might work

  • Users who have thanked Nightfire for this post:

    Xaqa (08-25-2011)

  • #3
    Regular Coder
    Join Date
    May 2011
    Posts
    122
    Thanks
    23
    Thanked 0 Times in 0 Posts
    I made a .htcaccess file and it's not working.

  • #4
    Regular Coder
    Join Date
    May 2011
    Posts
    122
    Thanks
    23
    Thanked 0 Times in 0 Posts
    Scratch that, it worked. Thanks.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •