Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2698 Widoki

I establish a website with odoo, and I use the following code to embed an mp3 file so that user can click it and listen.

"\ rel="ugc">https://gmpeden\.org/root/src/custom/eden/static/media/t26b7\.mp3">
 where\ gmpdeden\.org\ is\ the\ URL\ of\ my\ website,  /root/src/custom/eden/static/media/t26b7\.mp3  is the\ true\ path\ of\ the\ audio\ file\ in\ the\ computer\ where\ the\ webserver\ is\ run\.

But\ when\ I\ load\ the\ page\ containing\ this\ code,\ I\ get\ the\ 404\ file\ not\ found\ message\.\ Obviously\ the\ server\ does\ not\ recognize\ the\ http\ request\. 
However,\ if\ I\ move\ that\ file\ to\ google\ drive,\ and\ be\ given\ a\ share\ link\ like: "\ rel="ugc">
https://drive.google.com/file/d/1OCrcuOxDv9kmIePAvWFaPprLclI5eEKc/preview 
then it will show on website as a audio play icon  and I can listen to the audio by clicking it. Strangely enough, if I remove the "/preview" suffix, I will be given 403 forbidden.

Could someone give me the correct way to specify a file on my own web server, and explain why preview is essential for it to be played.


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sie 20
5341
1
mar 15
5015
1
lip 24
1852
2
lut 24
3334
1
lip 22
2432