BUG Sequential file upload to fix Solr reindexing problems

This commit is contained in:
Ingo Schommer 2012-09-11 10:22:17 +02:00
parent 7e6342c11b
commit fe82f9c5bc

View File

@ -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');