DOWNLOADS EXAMPLES SKINS DOCS SUPPORT
 
 

downloadfile

downloadfile -- Forces browser to open a "save as" dialog to download a file.

Usage

wimpy.php?action=downloadfile&theFile=http://www/path/to/file.mp3

Parameters

theFile -- a URL to a file

Description

Establishes proper server headers to pass the file to the browser and pops up a "save as" dialog so that the end user can save the mp3 file to their local computer.

This action is tied to the "displayDownloadButton" and "forceDownload" option in the player and is only used when "forceDownload" is set to yes.

To activate this option, include forceDownload=yes and displayDownloadButton=yes when loading wimpy.swf.
Example:
wimpy.swf?otherParams=blah&forceDownload=yes&displayDownloadButton=yes

Once this option is activated, wimpy.swf will make all requests to download a file as:

wimpyApp.php?action=downloadfile&theFile=http://www/path/to/file.mp3

NOTE: If you are running wimpy off of an XML playlist or if you are using the "Force XML Compliance" option, downloadfile is not available.

See also:

displayDownloadButton, forceDownload, forceXMLplaylist

 

Add and delete mp3s to your MySQL database

 

 

 

 

  ©Copyright Plaino LLC. All rights reserved.