Skip to content

Commit 7d013fa

Browse files
committed
fix: api allegati
1 parent 05e61dc commit 7d013fa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/API/Common/Allegato.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ public function retrieve($request)
5252
->where('id', $request['id'])
5353
->where('id_record', $request['id_record'])
5454
->first();
55+
5556
if (!empty($upload)) {
56-
download(base_dir().'/'.$upload->filepath, $upload->original_name);
57+
download(base_dir().'/files/'.$upload->directory.'/'.$upload->filename, $upload->original_name);
5758
}
5859

5960
return [

0 commit comments

Comments
 (0)