mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
BUG Sequential file upload to fix Solr reindexing problems
This commit is contained in:
parent
7e6342c11b
commit
fe82f9c5bc
@ -62,6 +62,9 @@ class DMSDocumentAddController extends LeftAndMain {
|
||||
$uploadField = DMSUploadField::create('AssetUploadField', '');
|
||||
$uploadField->setConfig('previewMaxWidth', 40);
|
||||
$uploadField->setConfig('previewMaxHeight', 30);
|
||||
// Required to avoid Solr reindexing (often used alongside DMS) to
|
||||
// return 503s because of too many concurrent reindex requests
|
||||
$uploadField->setConfig('sequentialUploads', 1);
|
||||
$uploadField->addExtraClass('ss-assetuploadfield');
|
||||
$uploadField->removeExtraClass('ss-uploadfield');
|
||||
$uploadField->setTemplate('AssetUploadField');
|
||||
|
Loading…
Reference in New Issue
Block a user