Problem with gallery addon
Mariano Martinez Peck
marianopeck at gmail.com
Thu Jun 11 02:05:30 MEST 2009
On Wed, Jun 10, 2009 at 12:38 PM, Damien Cassou <damien.cassou at gmail.com>wrote:
> On Wed, Jun 10, 2009 at 3:45 PM, Mariano Martinez
> Peck<marianopeck at gmail.com> wrote:
> > So, I add one to my Pier site. Then I use the "Import Pictures" command
> > select a zip I have with pictures. After saving the upload I receive the
> > error: "Import pictures: Only zip files are accepted"
> It seems your file is not recognized by the zip algorithm of Squeak. I
> don't know why, you will have to debug that.
After debugging I found this problem: when I upload a zip file in linux, the
mimetype is "application/zip". And subtype is:
"Answer the second part of the mime-type."
^ self mimetype copyAfter: $/
when it does (self file subtype = 'zip') this is true :)
But, in Linux, the mimetype is "x-zip-compressed"....so subtype is
and (self file subtype = 'zip') gives false....
Now, does someone has a better idea than doing this piece of hack:
(self file subtype = 'zip')
(self file subtype includesSubString: 'zip')
ifFalse:[MAConditionError description: self description signal: 'Only zip
files are accepted'] ].
However, after validating, when I press "save" I have another problem:
The thing is that the folder "pagina" (the zip uncompressed) was never
created. There can be a problem when trying to uncompress ?
where is this done? so that I can debug....
Thanks for the help :(
> Damien Cassou
> "Lambdas are relegated to relative obscurity until Java makes them
> popular by not having them." James Iry
> Magritte, Pier and Related Tools ...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the smallwiki