Quantcast

MIMEType no longer exist on Pharo, what do we replace it with?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

MIMEType no longer exist on Pharo, what do we replace it with?

Stephan Eggermont
Magritte-Pharo3-Model

MAFileSystem class>>mimeTypesForExtension: aString

     | types |
     types := MIMEType forExtensionReturnMimeTypesOrNil: aString.
     ^ types ifNotNil: [ types collect: [ :e | e asString ] ].

The interface for ZnMimeType is slightly different.

Stephan
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Loading...