File Force 1.0 |
Date Added: May 10, 2013 | Visits: 587 |
|
||||||||
Web browsers today are pre-configured to display various types of media when accessed directly, such as text files, media (image, video and audio) files, PDF documents, and Flash movies. After this happens, it's typically possible for a visitor to save the file to their hard drive using their browser's File menu and/or the item's contextual menu ("right-clicking"); however, novice computer users may not be aware of this, or perhaps you would prefer that visitors view the media in a non-browser application -- or maybe you just want to make sure that visitors will attain a copy of the file for themselves so they don't have to re-visit your site to access it again. File Force solves this problem by offering files with certain HTTP headers which cause the web browser to download the file to the user's disk instead of displaying it in a browser window.Please note that File Force offers an easy solution to this problem, but it (along with any other solution which requires a scripting language) is not recommended for high-traffic sites and/or sites that need to offer rather large files. Solutions which rely solely on the configuration of the web server should be implemented instead.Installation and configurationInstall File Force as you would any other module.Now, let's get hypothetical. Let's say you have your band's latest, greatest song in the file song.mp3 and you want to share it with the world, but you want people to download it instead of just playing it in their browser — and that's why you've installed File Force.The first rule of File Force is that it only works on files which are in your "File system path." You can view and change this setting by clicking the "File system" link in the "Site configuration" section of the Administer menu. By default, it is "files" for Drupal 5 and "sites/default/files" for Drupal 6. So either put the file there manually, or, if you're using Drupal's optional Upload module, attach the file to a node somewhere and it will be put there. (Note that File Force will still work if you've changed the file system path from the defaults mentioned above.)At this point, people can now download the file by going to homepage in Drupal 5, or homepage in Drupal 6. However, File Force will not operate when someone tries to access song.mp3 like that — the file will open in the visitor's browser.Which brings us to the second rule of File Force… In order for it to work on song.mp3, you must link visitors to the path "files/download/song.mp3". Paths that start with "files/download" kick File Force into action. What it does is strip off the "files/download/" part of the path, and look for the rest of it — in this case, "song.mp3" in whatever your file system path is. Note that this works with subdirectories; so, for example, if you put song.mp3 inside a subdirectory called music, you'd want to link to the path "files/download/music/song.mp3".There's a teensy problem that goes along with this, though; in your links to files, you need to account for whether your site has Clean URLs enabled. If not, you need to account for that when you create links to your files, and add a ?q= particle to the beginning of the path. So, to link to "song.mp3":NoteNote that installing File Force does not mean that visitors will no longer be able to view files in their browser window at all. The files will still be accessible at their initial paths as mentioned in the example above. Only when you use the "files/download/" prefix does File Force kick into action. This also means that the default file listings created by the Upload module will not provide links to the File Force path, instead linking directly to the file (which will be opened in a browser window). Future versions of File Force may address this, but for now, you should either upload your files to the files directory directly, bypassing the Upload module, or configure the Upload module to not show listings of attached files when nodes are viewed. Then link to the file using the File Force path in the node's content. Requirements: - Drupal 5.x or higher.
|
License: Freeware |
Legal
-
DII to DAT File Converter 1.0
DII to Dat File Converter is a free tool to convert DII files to DAT files. It reads the starting number and the ending number from a DII file. Once read it is written to a DAT file in the format of starting file,ending file. To use the program... |
1.23 MB | |
Audio Tools
-
Text to Audio File 1.1
Text to Audio File is a free Mac application that will create small AIFF files out of the text you give it. Text to Audio File uses Leopard's new realistic human-like voice to create rich, uninterrupted audio files. The files will be created... |
40.96 KB | |
Multimedia & Graphics
-
iPhoto To Disk for Mac OS 3.0
If your iPhoto library contains thousands of photos and movies organized in hundreds of events, retrieving your media files may be a challenging experience. This is where iPhoto To Disk can help. Whether you need to backup your photos or movies to... |
1.6 MB | |
Backup Utilities
-
Arctor Disk-To-Disk Backup Free 2.0.3.3
Arctor is hard disk backup made smart, fast, simple and powerful. At a price of less than $1 per GB, today's cheapest and fastest backup media are hard disks - so why not simply use one for your backups? Backups on hard disks are much quicker and... |
3.08 MB | |
Libraries
-
Tie::File 0.96
Tie::File can access the lines of a disk file via a Perl array. SYNOPSIS # This file documents Tie::File version 0.96 use Tie::File; tie @array, Tie::File, filename or die ...; $array[13] = blah; # line 13 of the file is now blah print... |
67.58 KB | |
File Synchronizers
-
jsp File Browser 1.2
jsp File Browser is an easy to use and easy to install file browser java server page. This JSP program allows remote web-based file access and manipulation.. JSP file browser allows remote web-based file access and manipulation like upload. |
23.55 KB | |
File Sharing
-
Torrent Swapper 0.1
Torrent Swapper is an open sourced sociable peer to peer file-sharing client based on the Bittorrent protocol that is ideal for high-speed distribution of large files that has a basic understanding of human friendships, of user tastes in content,... |
634.88 KB | |
File Sharing
-
NEsGUI 0.1.5
NEsGUI is a peer-to-peer file sharing application written by Neill Miller in GTK+ which utilizes the NEshare library.NEsGUI is a Napster like application. Its one of the simplest and least creative applications utilizing the NEshare peer-to-peer... |
57.34 KB | |
File Sharing
-
Phosphor 1.2.2
Phosphor is a peer-to-peer file sharing program. Phosphor can be used to search for and download files of all types as well as share your own. A user friendly GUI combined with useful features make Phosphor one of the strong contenders in the... |
||
File Management
-
eMule 0.48a 1.0
eMule is one of the biggest and most reliable peer-to-peer file sharing clients around the world. Features: - Clients use several networks to create one reliable network. (ED2K, Source Exchange, Kad) - Kad is now in an open testphase, eMule... |
Scripts
-
Free Ecommerce website creator 1.2
Free Ecommerce website creator is a free PHP shop creating script. This allows you to put a online shop on your own website. Create your own free ecommerce website for Your Business. Create an online shop using easyGUI online shop creator. The... |
1.44 KB | |
Scripts
-
MochiGames PHP Script ZDR 1.00
MochiGames PHP Script ZDR is web site, ready for use, for flash games. These flash games are downloaded automatically by "MochiGames PHP Script ZDR" from MochiGames media. The use of the games is free, you can use your own Mochi Publisher ID and... |
368.54 KB | |
Scripts
-
Php Chat 2.0
Add a free php site, single sign-on and multiple skins, 100% free 1. Server Modes: The chat server has paid mode and free mode. If the free chat mode, a free chat room will be assigned to your website with your domain as the room name. 2.... |
938.87 KB | |
Scripts
-
Nibbleblog 3.0.1
Nibbleblog it's a powerful engine for creation and manipulation of BLOG's completely free. Very simple to install and configure (Only 1 step). The database used is based on XML files and this way it is not necessary to use MySQL or similar DBMS.... |
371.09 KB | |
Scripts
-
PHP File Manager | CloudOsys 2.9b8
CloudOsys is a PHP file manager, a tool that allows your visitors upload files such as media content directly to your website. Your visitors will upload files directly to your website, where they can share and comment on them. Through cloud... |
1.41 MB | |
Modules
-
TinyMCE Node Picker 6.x-2.1
This module will de discontinued and replaced with Node Picker as soon as a stable release is available.TinyMCE Node Picker provides a button in TinyMCE that displays a list of links to content. Choosing a link inserts it into the editor.The... |
20.48 KB | |
Modules
-
Fapilicious 5.x-1.x-de
Fapilicious is a collection of FormAPI goodies.I hope to make it a repository of reusable FormAPI trickery and short cuts. Currently it has small collection of powerful FormAPI element validators.Please submit your favorite tricks as patches so we... |
10 KB | |
Modules
-
Donation Goals 6.x-1.x-de
The Donation Goals module lets you create nodes of the type "Donation Goal." These goals allow you to set an amount of money you'll need for whatever you're saving up for. Visitors of the site can then donate money through PayPal. Once the target... |
20.48 KB | |
Modules
-
Plica Twitter 1.0.1
Plica TwitterInstallation : * Download, unzip, and install plugin dir in /wp-content/plugins * Activate * All right now |
10 KB | |
Modules
-
Page Array 5.x-1.x-de
The pagearray module is a small (single function) helper module that can be used whenever there is a need to load the output of any Drupal path in data form. Based on the code in index.php, Page Array bypasses the theme('page') call, instead... |
10 KB |