Where should i place mp3 files

Post Reply
User avatar
LRAM
Master Bludit
Posts: 164
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Has thanked: 5 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
User avatar
Edi
Site Admin
Posts: 2935
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 34 times
Been thanked: 46 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
User avatar
LRAM
Master Bludit
Posts: 164
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Has thanked: 5 times
Contact:

Thanks Edi for your prompt answer
it works at the root
I just need to add a / before my path
User avatar
Edi
Site Admin
Posts: 2935
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 34 times
Been thanked: 46 times
Contact:

What do you mean with "at the root"?
User avatar
LRAM
Master Bludit
Posts: 164
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Has thanked: 5 times
Contact:

where the index.php is

my repertorie mp3 is on the same level
Post Reply