Skip to content

Commit 5d9b775

Browse files
committed
fix(drupal): Use public file system for PDF uploads
Changed upload location from private:// to public:// for demo simplicity. The private file system requires additional directory setup that may fail on fresh deployments.
1 parent 519650d commit 5d9b775

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • cloudformation/scenarios/localgov-drupal/drupal/web/modules/custom/ndx_aws_ai/src/Form

cloudformation/scenarios/localgov-drupal/drupal/web/modules/custom/ndx_aws_ai/src/Form/PdfConversionForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function buildForm(array $form, FormStateInterface $form_state): array {
8585
'#description' => $this->t('Upload a PDF file (maximum @size MB).', [
8686
'@size' => self::MAX_UPLOAD_SIZE_MB,
8787
]),
88-
'#upload_location' => 'private://pdf_conversion/',
88+
'#upload_location' => 'public://pdf_conversion/',
8989
'#upload_validators' => [
9090
'file_validate_extensions' => ['pdf'],
9191
'file_validate_size' => [self::MAX_UPLOAD_SIZE_MB * 1024 * 1024],

0 commit comments

Comments
 (0)