Zubrag.com
May 22, 2012, 05:30:18 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Smart Downloader - newbie questions  (Read 4686 times)
CurrentWave
Newbie
*
Posts: 4


« on: January 17, 2007, 01:21:18 pm »

I see in the php file where mime types are to be configured.....
I only want my mp3's to download instead of playing - The other mime types are not needed - so can I comment them out (leaving for possible future use) and then set the 'mp3' => 'audio/mpeg', to application/octet-stream to force a download? 

Thanks for the help.

Logged
zubrag
Administrator
Hero Member
*****
Posts: 753


WWW
« Reply #1 on: January 17, 2007, 02:49:18 pm »

Sure, we pre-populated downloader with some popular mime types just for your convenience.
Logged
CurrentWave
Newbie
*
Posts: 4


« Reply #2 on: January 17, 2007, 03:14:49 pm »

So by 'Sure' you mean - I can just comment out the unnecessary mime types and set mp3 to application/octet-stream to force downloads?  This would be a good use of the script - yes?

I'm sorry to post again, but 'Sure' is to soft of a reply for me  Smiley

Thanks,
Logged
zubrag
Administrator
Hero Member
*****
Posts: 753


WWW
« Reply #3 on: January 17, 2007, 04:14:04 pm »

yes, just comment out all mime types except mp3

This would be a good use of the script - yes?
It was created to hide real file path, and to restrics file types for download. So yes, it would be a good use of the script.
Logged
CurrentWave
Newbie
*
Posts: 4


« Reply #4 on: January 18, 2007, 04:52:32 pm »

Great!  Thanks for explaining it....

One more thing - for BASE_DIR is the URL path of
http://domainname.com/downloads/     okay?  Or
does the script want some kind of root path... and if so can you give me an example.

Thank you,
Logged
zubrag
Administrator
Hero Member
*****
Posts: 753


WWW
« Reply #5 on: January 18, 2007, 05:19:37 pm »

BASE_DIR cannot be an url. It must be relative path or even better absolute path from the root. It is a folder where all files available for downloads are saved on your server. Downloader will try to find file in this folder and subfolders.

Examples:

1) Unix: /home/path/to/the/folder/with/files/to/download/

2) Windows: c:/home/path/to/the/folder/with/files/to/download/

Please note a slash at the end.
Logged
CurrentWave
Newbie
*
Posts: 4


« Reply #6 on: January 18, 2007, 09:00:33 pm »

Thanks so much - you have explained it so well even I understood.

I tested it out and - it works great!

Thanks again....
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC