Skip to Content
मेन्यू
This question has been flagged
2690 Views

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.


Avatar
Discard
Related Posts Replies Views Activity
1
अग॰ 20
5337
1
मार्च 15
5012
1
जुल॰ 24
1843
2
फ़र॰ 24
3330
1
जुल॰ 22
2429