Where should i place mp3 files

Post Reply
User avatar
LRAM
Master Bludit
Posts: 63
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Contact:

Wed Mar 28, 2018 1:02 pm

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: 1290
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Wed Mar 28, 2018 8:46 pm

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
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
User avatar
LRAM
Master Bludit
Posts: 63
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Contact:

Fri Mar 30, 2018 12:21 pm

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: 1290
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Fri Mar 30, 2018 2:45 pm

What do you mean with "at the root"?
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
User avatar
LRAM
Master Bludit
Posts: 63
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Contact:

Thu Apr 05, 2018 8:01 am

where the index.php is

my repertorie mp3 is on the same level
Post Reply