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 d2719ab commit c4069c1Copy full SHA for c4069c1
src/FileHelper.php
@@ -46,7 +46,7 @@ public function extension()
46
*/
47
public function tmp()
48
{
49
- return $this->data['tmp_name'];
+ return $this->data['tmp_name'] ?? 'null';
50
}
51
52
/**
@@ -68,7 +68,7 @@ public function name()
68
public function mime()
69
70
return Str::lower(@mime_content_type(
71
- $this->data['tmp_name']
+ $this->tmp()
72
));
73
74
@@ -91,7 +91,7 @@ public function size()
91
public function imageSize()
92
93
// get image attributes
94
- $imagePath = @getimagesize($this->data['tmp_name']);
+ $imagePath = @getimagesize($this->tmp());
95
96
return [
97
'width' => $imagePath[0] ?? null,
0 commit comments