SmallWiki and Images
Lukas Renggli
renggli at student.unibe.ch
Thu Jan 1 22:25:43 UTC 2004
Hi Michael,
> Have I missed something blindingly obvious?
I don't think so, this is a bug in the Squeak implementation of
SmallWiki. I've checked the archives of the SmallWiki mailing-list and
attached two mails of the previousely mentioned topic. Unfortunately I
don't know if this has been fixed already or is still outstanding. For
further information it would be the best to ask the Squeak porters (
Chris Burkert).
Cheers,
Lukas
PS: Happy new year, too! Sorry to have replayed to your posting that
slow, I just noticed it today by accident. I should probably set-up some
of the filtering/highlighting capabilites of my news-client ... ;)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From: chris AT chrisburkert.de
Subject: Re: [Q][Bug] Action class SWResourceEdit
Date: December 7, 2003 20:53:50 GMT+01:00
To: smallwiki AT iam.unibe.ch
Hi Hannes,
Hannes Hirzel wrote:
> Hannes Hirzel wrote:
>> Hannes Hirzel wrote:
>>
>>> My question applies to the Squeak implemenation of smallwiki.
>>>
>>> The mime type isn't set for jpg, gif and wav files
>>>
>>
>> To be more precise: The mime type is not set in the action class
>> SWResourceEdit or one of its superclasse SWEditAction or SWAction.
>>
>> Common mime types are (just strings) in the instance variable
>> mimetype
>> 'image/jpg'
>> 'image/gif'
>> 'audio/wav'
>>
> In the method renderFields of SWResourceEdit
> the following code snippet does not work correctly.
> html fileUploadWithCallback: #data:mime:
> The mime type returned is the empty string.
Is Mime supported in the VW-SmallWiki?
As I understand, the mimetype is set when you create a new Resource, but
not, when you upload the data (or a new version). The default value is
''.
I will take a look if we can add this support, so the mimetype will be
set correctly when you upload the data.
Regards
Chris Burkert
--
http://www.chrisburkert.de/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From: renggli AT student.unibe.ch
Subject: Re: [Q][Bug] Action class SWResourceEdit
Date: December 7, 2003 21:20:05 GMT+01:00
To: smallwiki AT iam.unibe.ch
> Is Mime supported in the VW-SmallWiki?
Yes, this is working in VW: The mime-type is automatically read from the
HTTP header when uploading a file.
> As I understand, the mimetype is set when you create a new Resource,
> but not, when you upload the data (or a new version). The default
> value is ''.
You can get the mime-type of the data with any callback-block you define.
I suspect that in Squeak SmallWiki this is not properly passed from the
server to the callback-block:
[ :action :value :mimetype | ... ]
I know, I should add a test to catch that kind of problem.
Cheers,
Lukas
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--
Lukas Renggli
http://renggli.freezope.org
More information about the Squeak-dev
mailing list
|