Hello Jelle,

There are a few things you need to do to add support for a new data type.  The steps are described here:

http://wiki.g2.bx.psu.edu/Admin/Datatypes/Adding%20Datatypes

Greg Von Kuster

On Jul 22, 2011, at 8:49 AM, Jelle Scholtalbers wrote:

Hi all,

I would like to be able to upload images to my Galaxy instance - in particular jpg/png to data libraries. I can't however find out how to overcome the problem of inappropriate content in binary file.
How to go about? 

When I create a sniffer class in the galaxy.datatypes.images.py that always returns true (for testing purposes) I still don't get the jpg uploaded without an error (sniffer is incl. in the datatypes_conf.xml )
class Jpg( Image ):
    file_ext = "jpg"
    def sniff(self, filename):
        """Determine if the file is in jpg format.
        """
        return True

It seems I'm missing something obvious and could use some help.

Cheers,
Jelle
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

 http://lists.bx.psu.edu/

Greg Von Kuster
Galaxy Development Team
greg@bx.psu.edu