Author Topic: download xxx file  (Read 8714 times)

Offline bigguy

download xxx file
« on: January 29, 2006, 09:52:18 am »
I`m trying to set this up so I can let ppl download sigs that are in .jpg format. I got it to work but when you download the file is okb. I tried to zip it and make it a txt file by changing the extension but it still downloads as 0kb. Any ideas ???

Offline Daniel15

Re: download xxx file
« Reply #1 on: January 29, 2006, 01:06:07 pm »
Make sure you're using the proper file path (where it says 'File Path (INCLUDING FILE NAME)'). Your directory layout should be something like this:

/home/[username]/public_html/ -- Public HTML folder
/home/[username]/public_html/forum/ -- Forum folder
/home/[username]/files/ -- The folder you store your files in.
[username] = cPanel username

If you're using cPanel, then the layout will be pretty similar. Make a 'files' folder OUTSIDE of the public_html folder, otherwise, if someone knows the name of the folder, they can download anything from it without paying!

If it still doesn't work, use the absolute path in the 'File Path' field (for example, "/home/[username]/files/test.jpg"). It should work for you

Offline bigguy

Re: download xxx file
« Reply #2 on: January 29, 2006, 01:14:51 pm »
It will download, I think I do have the paths right . I made a file in my root directory, lets call it files for now. I have put all the files in there that I want members to be able to download. The path I used was: "/****/files/one.jpg"  and it will download as I said but it 0kb is the path wrong
« Last Edit: January 29, 2006, 01:38:51 pm by bigguy »

Offline Daniel15

Re: download xxx file
« Reply #3 on: January 29, 2006, 02:26:12 pm »
Your root path is /home/[username]/

So the path will be /home/****/files (**** = cPanel username)

Offline bigguy

Re: download xxx file
« Reply #4 on: January 30, 2006, 01:34:15 am »
When I download it it still says okb. I changed the path to what you said.

Offline bigguy

Re: download xxx file
« Reply #5 on: February 06, 2006, 07:21:49 am »
Problem solved, thank you for the help. It works great. :)

Offline melwinnie

Re: download xxx file
« Reply #6 on: February 07, 2006, 01:41:33 pm »
Hello Bigguy,

Would you be so kind to share how you got your shop to have an item that downloads a file?

I too would like to offer a file download from the shop

Thanks
« Last Edit: February 07, 2006, 01:49:08 pm by melwinnie »

Offline bigguy

Re: download xxx file
« Reply #7 on: February 09, 2006, 04:55:35 am »
The answers are in this thread if you look at it hard enough. It took me a bit but I had to put the file I wanted ppl to be able to download in a folder that was in the same directory as my forum is in and then create the right path to it. Thats about it

Offline Daniel15

Re: download xxx file
« Reply #8 on: February 10, 2006, 08:29:33 pm »
Hello Bigguy,

Would you be so kind to share how you got your shop to have an item that downloads a file?

I too would like to offer a file download from the shop

Thanks

It's an in-bulit SMFShop item. Just put the file somewhere on your website, with a RANDOM file name (so people can't just guess the file name and download the file without paying). Next, you add a 'Download xxx File' item via the SMFShop admin panel.

newton

  • Guest
Re: download xxx file
« Reply #9 on: July 06, 2007, 02:40:05 am »
Hi,
I wanted to add some larger files into the shop. I dont want to use my bandlimit too much so i thought of adding the files onto another server. What i dont know is how to link the Download [xxx[ file to one which is not onto the server on which the current website is hosted.
Any help is appreciated,
thanks,
Newton

Offline Daniel15

Re: download xxx file
« Reply #10 on: July 08, 2007, 01:42:57 pm »
That isn't really possible with the download item (as all its downloads will pass through your server). The only easy way to have a download off another server is to uplode the file to the other server, and use the "Display Message" item to show a link to the file.