Link to audio file broken in a Multilingual site
| Project: | FileField Podcaster |
| Version: | 6.x-0.7 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | reviewed & tested by the community |
Hi all,
I tried to set up a podcast with ffpc 6x-0.7, View 2.3 & filefield 6.x-3.0-alpha7, in a multilingual site, but I believe the URL to the mp3 files in the podcast are being incorrectly generated.
A new filefield-enabled content type was created for the podcast items, and the mp3 files are uploaded to sites/default/files/podcast. Each podcast item can be accessed with any language prefix, by using the URL syntax http://mysite/language_prefix/content/XX URLs (where XX is the node name). However the link to the mp3 file is always http://mysite/sites/default/files/podcast/yyy.mp3 (where yyy is the name of the mp3 file), i.e, the URL does not include the language prefix.
When I create the podcast with ffpc, however, the items in the feed point to http://mysite/language_prefix/sites/default/files/podcast/yyy.mp3 files, which the server cannot find.
Thanks,
Fernando

#1
Hi,
I examined the code and observed that the URLs for the mp3 files in the Podcasts are being generated by the url() function and not by the file_create_url() one (used by the filefield module itself).
The attached patch correct this behaviour.
#2
Sorry, posted the patch with the wrong Status. Corrected now
#3
Patch fixed the issues I had with file references, so I've changed status to tested.
#4
hello.
when will we see this patch commited at least to the development version?
thanks.
#5
This issue is a duplicate of http://drupal.org/node/328649 Enclosure URL path not working for private files?, which I reopened because HEAD contains the
file_create_url()on one of the file URL's but not the other.This issue can be merged into that one.