Re: SVG Mime type
Annick Fron <[email protected]> Wed, 1 Jul 2020 13:04:14 +0200
| Newsgroups | gmane.comp.lang.smalltalk.squeak.seaside |
|---|---|
| Message-ID | <[email protected]> |
Thank you Johan > Le 1 juil. 2020 à 12:29, Johan Brichau <[email protected]> a écrit : > > Annick, > > It’s my understanding that Seaside in Visualworks is no longer updated with more recent versions of Seaside. > Although, it seems that in a current Seaside, the following also returns true: > > (WAMimeType main: 'image' sub:'svg+xml’) isBinary > > I submitted an issue https://github.com/SeasideSt/Seaside/issues/1207 <https://github.com/SeasideSt/Seaside/issues/1207> to track and correct. > There are a couple more similar issues, so they will be treated as one ;) > > Johan > >> On 1 Jul 2020, at 12:19, Annick Fron <[email protected] <mailto:[email protected]>> wrote: >> >> Hi, >> Thank you for the pointer. >> I have discovered that in the Seaside-Visualworks package in WAResponse>>document:, there is a test to check for binaries or text. And svg mime type is considered as binary (from WAMimeType isBinary method), so the svgContent method should be a string with the svg with asByteArray at the end. >> Best regards >> >> Annick >> >> >>> Le 30 juin 2020 à 18:58, Paul DeBruicker <[email protected] <mailto:[email protected]>> a écrit : >>> >>> That sounds like it should work. >>> >>> Where does the error occur? In the browser or whatever smalltalk version >>> you're using? >>> >>> Can you inspect the response in the browser and check that the correct mime >>> type is set? >>> >>> Does your SVG file have a starting tag like the one shown here: >>> >>> https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Getting_Started <https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Getting_Started> >>> >>> >>> Annick wrote >>>> Hi, >>>> >>>> I have tried to use the WAFileMetadataLibrary for importing svg files, >>>> everything works ok locally, but when publishing to my web site, I get an >>>> error « The mimetype of image/svg+xml » does not match the content. >>>> >>>> Anybody has an idea about this ? >>>> >>>> Best regards >>>> >>>> Annick >>>> _______________________________________________ >>>> seaside mailing list >>> >>>> [email protected] >>> >>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside <http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside> >>> >>> >>> >>> >>> >>> -- >>> Sent from: http://forum.world.st/Seaside-General-f86180.html <http://forum.world.st/Seaside-General-f86180.html> >>> _______________________________________________ >>> seaside mailing list >>> [email protected] <mailto:[email protected]> >>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside <http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside> >> _______________________________________________ >> seaside mailing list >> [email protected] <mailto:[email protected]> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > _______________________________________________ > seaside mailing list > [email protected] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ seaside mailing list [email protected] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside