跳至内容
菜单
此问题已终结
2700 查看

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.


形象
丢弃
相关帖文 回复 查看 活动
1
8月 20
5341
1
3月 15
5015
1
7月 24
1854
2
2月 24
3334
1
7月 22
2432