Today, I test it again in another windows machine and I have another problem. When saving the uploaded zip file, I have the following error:
"Error: Fotos/foto_flor.jpg is an invalid child in Galeria."
Suppose my file is called "fotos.zip" and I have a photo inside called 'foto_flor.jpg'
After debugging for a while, this is the problem. ZipArchive generates a member with fileName 'fotos/foto_flor.jpg'. Then when trying to addPictura a validation is done:
PRPath>>isValidName
and when it does:
aString allSatisfy: [ :char | self validCharacters includes: char ]
In this case, aString is 'fotos/foto_flor.jpg' and '/' is not in validCharacters.
So, what can I do?
1) add '/' to self validCharacters ? I think this has a lot of impact in other places
2) in PGImportArchiveCommand>>addPicture: archiveMember
remove the '/' when creating the picture (PGPicture) object
what should I do? any other idea?
Thanks!
Mariano
On Wed, Jun 10, 2009 at 5:42 PM, Mariano Martinez
Peck<marianopeck@gmail.com> wrote:
> I can also debug it and see what the problem is. I just ask because perhapsI tried it and it worked for me at that time. Please tell me if there
> this was a known problem or someone has already faced it.
is something wrong in my code.
--
Damien Cassou
http://damiencassou.seasidehosting.st
"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki