diff --git a/tailbone/views/batch.py b/tailbone/views/batch.py index 01f113ac..9fbc73a6 100644 --- a/tailbone/views/batch.py +++ b/tailbone/views/batch.py @@ -946,7 +946,7 @@ class FileBatchMasterView(BatchMasterView): batch = self.get_instance() if not batch: raise httpexceptions.HTTPNotFound() - path = self.handler.data_path(batch) + path = batch.filepath(self.rattail_config) response = FileResponse(path, request=self.request) response.headers[b'Content-Length'] = str(os.path.getsize(path)) filename = os.path.basename(batch.filename).encode('ascii', 'replace')