Skip to content

Commit

Permalink
AKE2-9: Files are not available on the storefront
Browse files Browse the repository at this point in the history
  • Loading branch information
dxops committed Feb 10, 2020
1 parent 0c313a6 commit b60a1bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ImportExport/Writer/AttributeWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ protected function setAttributeData(FieldConfigModel $fieldConfigModel)
$attachmentProvider = $this->configManager->getProvider('attachment');
$attachmentConfig = $attachmentProvider->getConfig($className, $fieldName);
$attachmentConfig->set('mimetypes', implode("\n", ['application/*', 'image/*', 'text/*']));
$attachmentConfig->set('file_applications', ['default', 'commerce']);
$this->configManager->persist($attachmentConfig);
}

Expand Down

0 comments on commit b60a1bb

Please sign in to comment.