Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Adding extensions to the end of File uploads
I use TXP to upload mp3 files for podcasting. While I love the ease and the ability to monitor downloads, I think I need to add the .mp3 extension to the file as it uploads. So instead of http://www.mysite.com/files/id it would be http://www.mysite.com/files/id.mp3.
The reason I need to do this is that it appears iTunes does not recognize the enclosure as an mp3 and my newer posts are not showing up in iTunes. Older ones, that I uploaded via ftp instead of through TXP are showing up, but since the change, nothing new. I even redid my xml feed in total compliance with Apple’s specs, and still get no luck.
Any help would be very much appreciated.
I amaze myself with my inability to grasp simple concepts.
Offline
#2 2005-10-01 19:30:05
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Adding extensions to the end of File uploads
While I believe the built-in plugins don’t return it, you can already call the download with the file’s name rather than id, and the name usually includes the extension by default.
http://mysite.com/file_download/id.mp3
Offline
Re: Adding extensions to the end of File uploads
Bumping this message up with a couple of additional questions:
- Is there a way to make the URL of the uploaded file be the filename?
- Is there a way to specify a different folder as the file download folder?
I am looking for files uploaded through the Textpattern interface to show up using this URL scheme:
http://site.com/downloads/filename.pdf
Cheers,
Simon
Offline