[Seaside] Rss not quite working

Sven Van Caekenberghe sven at stfx.eu
Mon Dec 2 22:07:43 UTC 2019


Normally this should be OK, but make sure that the following work correctly:

ZnMimeType forFilenameExtension: 'rss'.
 "application/x-rss+xml"

ZnMimeType forFilenameExtension: 'mp3'. 
 "audio/mpeg"

It is necessary for a static file server (like ZnStaticFileServerDelegate) to serve a resource with the correct mime type, based on its extension.

You can verify that your files are served correctly using curl with debugging options, for example, or the web inspector of your browser.

> On 2 Dec 2019, at 22:30, Jeff Gray <jeff at rogerthedog.com> wrote:
> 
> Rss file:
> <?xml version="1.0" encoding="UTF-8"?><rss
> version="2.0"><channel><title>PodcastFromFiles</title><link>http://rogerthedog.com:8081/PodcastFromFiles.rss</link><description>Podcasts
> from a set of
> files</description><item><title>01-ColourOfMagicU1.mp3</title><description>PodcastFromFiles
> 01-ColourOfMagicU1.mp3</description><pubDate>Sat, 30 Nov 2019 20:47:54
> +1000</pubDate><link>http://rogerthedog.com:8081/01-ColourOfMagicU1.mp3</link></item><item><title>01-ColourOfMagicU2.mp3</title><description>PodcastFromFiles
> 01-ColourOfMagicU2.mp3</description><pubDate>Sun, 1 Dec 2019 20:47:54
> +1000</pubDate><link>http://rogerthedog.com:8081/01-ColourOfMagicU2.mp3</link></item><item><title>01-ColourOfMagicU3.mp3</title><description>PodcastFromFiles
> 01-ColourOfMagicU3.mp3</description><pubDate>Mon, 2 Dec 2019 20:47:54
> +1000</pubDate><link>http://rogerthedog.com:8081/01-ColourOfMagicU3.mp3</link></item></channel></rss>
> 
> 
> I call this method to start the static file server:
> ZnZincStaticServerAdaptor startOn: aPort andServeFilesFrom: subFolderRef.
> 
> 'subFolderRef' is a FileReference object on a folder on my hard disk,
> holding the mp3 files and the rss file.
> aPort matches the 8081 in the rss file. 
> 
> 
> 
> 
> 
> --
> Sent from: http://forum.world.st/Seaside-General-f86180.html
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the seaside mailing list