Skip to content

Commit 389efd7

Browse files
committed
fixes file path upgrade for rejected imports
1 parent ba50a6e commit 389efd7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Models/File.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
use LaravelEnso\ImageTransformer\Services\ImageTransformer;
2323
use LaravelEnso\TrackWho\Traits\CreatedBy;
2424
use Symfony\Component\HttpFoundation\File\File as BaseFile;
25+
use Symfony\Component\HttpFoundation\StreamedResponse;
2526

2627
class File extends Model
2728
{
@@ -125,14 +126,14 @@ public function delete()
125126
return parent::delete();
126127
}
127128

128-
public function download()
129+
public function download(): StreamedResponse
129130
{
130131
$name = Str::ascii($this->original_name);
131132

132133
return Storage::download($this->path, $name);
133134
}
134135

135-
public function inline()
136+
public function inline(): StreamedResponse
136137
{
137138
return Storage::response($this->path);
138139
}

0 commit comments

Comments
 (0)