Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I would like to embedd mp3 files to my content using flash node and SWF Tools. The mp3 files are organised in subdirectories. When I embed any file from /flash/ (default directory) it plays well. But i want to embed other files from other subdirectories of my site.
is OK
but
and are giving me error message "You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialise correctly."
What is the problem? Please help. (I posted this in forum but no reply from anybody, hence this post. Sorry)
Regards,
-S-
Comments
Comment #1
Stuart Greenfield CreditAttribution: Stuart Greenfield commentedFlash node automatically places all its uploaded files in /flash, so it can't accommodate subdirectories. There have been requests to enable multiple directories but I haven't implemented that, and not sure if I will.
If you have the content in other directories you could embed it using the SWF Tools input filter. If you activate that for a content type then you can insert an mp3 in a player using <swf file="/path/to/myAudio.mp3"> and reference any subdirectory (or even an external url).
The mp3 player will be rendered in your default mp3 player, as set in the SWF Tools options.
Comment #2
sunilkumar CreditAttribution: sunilkumar commentedStuart Greenfield,
Thanks for the reply. Can you please explain how to activate SWF Tools input filter? After activating this, can I arrange my files in special sub directory and sub-sub folders in public_html folder or anywhere in the site?
Thanks again and sorry for dump questions
Regards,
-S-
Comment #3
Stuart Greenfield CreditAttribution: Stuart Greenfield commentedTake a look at the handbook page about the input filter - that explains things.
As to where can you put files, the anwers is "anywhere that is accessible to your website!"
The input filter uses the form <swf file="/path/to/my/file"> or <swf file="http://myserver.com/some/arbitrary/path/to/file.mp3">
So hopefully you'll be able to structure your site as best suits you and get it working.
Comment #4
sunilkumar CreditAttribution: sunilkumar commentedThanks Stuart. Let me try in this evening.
Regards,
-S-
Comment #5
sunilkumar CreditAttribution: sunilkumar commentedI tried by adding the input filter. It give me error "file appear not to exists" even though the file is in my public_html in a sub-sub folder. I gave the path correctly.
Javascript is added in to every page. Is that a problem? Direct embedding is tick marked. I tried inf firefox and IE.
If the file is in /flash/ folder it works great!
Regards,
-S-
Comment #6
sunilkumar CreditAttribution: sunilkumar commentedThanks Stuart.
I found the problem. My folder name was two word, example "my music". I renamed the folder to "mymusic" without any spaces in between the words. Now it works fine!
Please mention this also in the handbook for others. No space or other extra characters in the file name and folder name.
Changing the status to "closed"
Regards,
-S-
Comment #7
Stuart Greenfield CreditAttribution: Stuart Greenfield commentedI'm glad you got it working.
I'm going to re-open this thread, but change its title to "Spaces in path break file detection". Using spaces is something that happens and I'd like to try and fix it properly.
Comment #8
sunilkumar CreditAttribution: sunilkumar commentedNot only spaces, Stuart. Sometimes I was using "," (coma) in my file name and it was not working. Now I removed such extra characters and spaces, all OK.
Off topic: "Spaces in path, break file detection" seems to be technical (language) :):)
Regards,
-S-
Comment #10
foripepe CreditAttribution: foripepe commentedI'm not sure my problem is the same, but I get page not found error, when I use filepath with space.
I just upgraded my Drupal to 5.17. Bug in the latest Drupal 5 and 6 versions?
Comment #11
foripepe CreditAttribution: foripepe commentedOk, I have fixed my bug. I didn't notice, the programmer, who wrote the original code of one of my module didn't use file_create_url() function.
Now everything seems fine.