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 32e2550 commit 71817f9Copy full SHA for 71817f9
packages/framework/src/Support/Filesystem/MediaFile.php
@@ -130,7 +130,17 @@ public function getMimeType(): string
130
131
public function getHash(): string
132
{
133
- return md5_file($this->getAbsolutePath()) ?: throw new FileNotFoundException($this->path);
+ $md5File = md5_file($this->getAbsolutePath());
134
+ if ($md5File === false) {
135
+ dd([
136
+ 'path' => $this->getAbsolutePath(),
137
+ 'exists' => file_exists($this->getAbsolutePath()),
138
+ 'is_file' => is_file($this->getAbsolutePath()),
139
+ ]);
140
+ }
141
+
142
+ return $md5File;
143
144
}
145
146
/** @internal */
0 commit comments