Where should i place mp3 files

Post Reply
User avatar
LRAM
Master Bludit
Posts: 199
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Has thanked: 22 times
Been thanked: 2 times
Contact:

Hi

where is the place to put a MP3 if I want a code like this <source src="mp3/ukulele/2010/Frenchy_bebe_blues.mp3

I tried in bl-content/uploads
but it doesn't work

i don't want to write the whole path https://sucrepop.com/mp3/ukulele/2010/F ... _blues.mp3

The future website
https://sucrepop.com/Ukulele

thansk
https://sucrepop.com
Candies for the ears
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

You can use the directory /bl-content/uploads.

If you use HTML code the relative path for the example will be:

Code: Select all

/bl-content/uploads/Frenchy_bebe_blues.mp3
If you use the audio tag you can use the following:

Code: Select all

<audio controls>
<source src="/bl-content/uploads/Frenchy_bebe_blues.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
It's the same as for videos discussed here:

viewtopic.php?f=14&t=1071
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
LRAM
Master Bludit
Posts: 199
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Has thanked: 22 times
Been thanked: 2 times
Contact:

Thanks Edi for your prompt answer
it works at the root
I just need to add a / before my path
https://sucrepop.com
Candies for the ears
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

What do you mean with "at the root"?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
LRAM
Master Bludit
Posts: 199
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Has thanked: 22 times
Been thanked: 2 times
Contact:

where the index.php is

my repertorie mp3 is on the same level
https://sucrepop.com
Candies for the ears
Post Reply