mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
PHRAS-3422 add link from record to expose assets
This commit is contained in:
@@ -126,9 +126,16 @@ class ExposeUploadWorker implements WorkerInterface
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$instanceKey = $this->app['conf']->get(['main', 'key']);
|
||||||
|
|
||||||
|
// this is the unique reference for record in phraseanet and assets in expose
|
||||||
|
// instanceKey_basedID_record_id
|
||||||
|
$assetId = $instanceKey.'_'.$record->getId();
|
||||||
|
|
||||||
$requestBody = [
|
$requestBody = [
|
||||||
'publication_id' => $payload['publicationId'],
|
'publication_id' => $payload['publicationId'],
|
||||||
'description' => $description,
|
'description' => $description,
|
||||||
|
'asset_id' => $assetId,
|
||||||
'upload' => [
|
'upload' => [
|
||||||
'type' => $record->getMimeType(),
|
'type' => $record->getMimeType(),
|
||||||
'size' => $record->getSize(),
|
'size' => $record->getSize(),
|
||||||
|
Reference in New Issue
Block a user