def create(self, filename, filedata):
        """Create a file from raw data"""
        attributes = {'filename': filename,
                      'source': filedata}
        return self.transport.POST(url='/file/v2/', body=attributes, type='multipart/form-data')
def create ( self , filename , filedata ) : attributes = { 'filename' : filename , 'source' : filedata } return self . transport . POST ( url = '/file/v2/' , body = attributes , type = 'multipart/form-data' )
Create a file from raw data