Skip to content

Commit

Permalink
Merge pull request #156 from mbrodala/patch-2
Browse files Browse the repository at this point in the history
Index legacy file uploads by field name
  • Loading branch information
benjasper authored Sep 6, 2024
2 parents 4c4687d + 3aef3f6 commit 034f2cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Classes/Controller/ApplicationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,10 +406,10 @@ public function createAction(Application $newApplication, Posting $posting = nul
switch ($uploadMode)
{
case self::UPLOAD_MODE_LEGACY:
$legacyUploadfiles[] = $this->processFiles($newApplication, $arguments['cv'], 'cv', $fileStorage, 'cv_');
$legacyUploadfiles[] = $this->processFiles($newApplication, $arguments['cover_letter'], 'cover_letter', $fileStorage, 'cover_letter_');
$legacyUploadfiles[] = $this->processFiles($newApplication, $arguments['testimonials'], 'testimonials', $fileStorage, 'testimonials_');
$legacyUploadfiles[] = $this->processFiles($newApplication, $arguments['other_files'], 'other_files', $fileStorage, 'other_files_');
$legacyUploadfiles['cv'] = $this->processFiles($newApplication, $arguments['cv'], 'cv', $fileStorage, 'cv_');
$legacyUploadfiles['cover_letter'] = $this->processFiles($newApplication, $arguments['cover_letter'], 'cover_letter', $fileStorage, 'cover_letter_');
$legacyUploadfiles['testimonials'] = $this->processFiles($newApplication, $arguments['testimonials'], 'testimonials', $fileStorage, 'testimonials_');
$legacyUploadfiles['other_files'] = $this->processFiles($newApplication, $arguments['other_files'], 'other_files', $fileStorage, 'other_files_');
break;
case self::UPLOAD_MODE_FILES:
$multiUploadFiles = $this->processFiles($newApplication, $arguments['files'], 'files', $fileStorage);
Expand Down

0 comments on commit 034f2cc

Please sign in to comment.