We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05e61dc commit 7d013faCopy full SHA for 7d013fa
1 file changed
src/API/Common/Allegato.php
@@ -52,8 +52,9 @@ public function retrieve($request)
52
->where('id', $request['id'])
53
->where('id_record', $request['id_record'])
54
->first();
55
+
56
if (!empty($upload)) {
- download(base_dir().'/'.$upload->filepath, $upload->original_name);
57
+ download(base_dir().'/files/'.$upload->directory.'/'.$upload->filename, $upload->original_name);
58
}
59
60
return [
0 commit comments