diff --git a/producer/api/python/asapo_producer.pyx.in b/producer/api/python/asapo_producer.pyx.in index 3af967b8ddfa8775ea9ccc079001d5fbde89348f..48c5fa77afb6ed2747a44c3ad30167da64ff8f50 100644 --- a/producer/api/python/asapo_producer.pyx.in +++ b/producer/api/python/asapo_producer.pyx.in @@ -216,7 +216,7 @@ cdef class PyProducer: cdef EventHeader event_header = self.create_event_header(id,exposed_path,user_meta,subset,ingest_mode) event_header.file_size = 0 - err = self.c_producer.get().SendFile(event_header, _bytes(local_path), _bytes(substream), ingest_mode, + err = self.c_producer.get().SendFile(event_header, _bytes(substream), _bytes(local_path), ingest_mode, unwrap_callback(<RequestCallbackCython>self.c_callback, <void*>self,<void*>callback if callback != None else NULL)) if err: throw_exception(err)