Skip to content

Commit

Permalink
Merge pull request #11 from caosborne89/retain_original_filename
Browse files Browse the repository at this point in the history
Retain original filename
  • Loading branch information
zerocrates authored May 1, 2024
2 parents 9a5505a + aae6964 commit d28d144
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/ApiImport/ResponseAdapter/Omeka/ItemAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ protected function files()
foreach($responseData as $fileData) {
if(! in_array($fileData['id'], $ids)) {
$files[] = array('source' => $fileData['file_urls']['original'],
'name' => $fileData['original_filename'],
'metadata' => $this->elementTexts($fileData),
//add the external id so we can produce the map
'externalId' => $fileData['id']
Expand Down

0 comments on commit d28d144

Please sign in to comment.