You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
if you dont have any objections, it would be great to add $uploadField->relationAutoSetting = false in GridFieldBulkUpload->bulkUploadField(). See here: arillo@82a6d5d
This solves problems with gridfields using multiple classes and prevent the related File type forced to be 'File' only. In this case silverstripe autodetects the proper class (File or Image, depending on its file extension).
Surely an configurable solution for the behaviour would be nice as well.
Friendly regards,
Bumbus
The text was updated successfully, but these errors were encountered:
bumbus
changed the title
Add $uploadField->relationAutoSetting = false in GridFieldBulkUploadpublic->bulkUploadField()
Add support for multiple 'File' types
Oct 22, 2015
sorry for the long silence....
I guess it could be a default setting... I'll have to see if it's an advantage.
But for now this should be easily setup via setUfConfig() which let's you define the UploadField configuration options. Something like $config->getComponentByType('GridFieldBulkUpload')->setUfConfig('relationAutoSetting', false);
Hi there,
if you dont have any objections, it would be great to add $uploadField->relationAutoSetting = false in GridFieldBulkUpload->bulkUploadField(). See here:
arillo@82a6d5d
This solves problems with gridfields using multiple classes and prevent the related File type forced to be 'File' only. In this case silverstripe autodetects the proper class (File or Image, depending on its file extension).
Surely an configurable solution for the behaviour would be nice as well.
Friendly regards,
Bumbus
The text was updated successfully, but these errors were encountered: