Hello,
Has anyone manged to get the Wimpy player working with automatic playlists?
I have an MP3 content type which the user uses to upload a music track (using CCK and filefield). Filefield insists that the uploaded file destination be beneath the system file directory (sites/default/files).
If I place the Wimpy files in e.g. sites/default/media Wimpy will work fine and sees all MP3s in it's current directory.
However, if I place the media directory anywhere beneath the sites/default/files directory it won't see the MP3s in it's own directory.
Is this something set in .htaccess or in the db or elsewhere? I've tried lots of permutations and permissions, different .htaccess files and public vs. private downloads, but the Wimpy SWF will just not read files beneath the system files directory. Please help. Thanks.
Comments
It's a security thing ...
For security reasons Drupal prevents execution of all files in your sites/default/files directory. Therefore your wimpy.php file must reside outside this directory.
Since uploaded files must go beneath your sites/default/files directory, you must run Wimpy with an alternative starting directory. The way to do this is with an XML config file, instructions here (in the Create a configs file section.)
The main thing to be careful of is that the startDir must be specified as the full absolute path from your server root - often you'll have to check what this is from your hosting cpanel or equivalent control area.
All the best,
Seán
That worked perfectly, thank
That worked perfectly, thank you.
I had some problems with the startDir as you said, but now it's working great.