Skip to content

Commit 7e0ec44

Browse files
fix(upload): improve error message clarity for upload folder validation
- Replaced ambiguous "Invalid file path" with "Invalid upload folder" - Improves debugging and error semantics Compliance: - No logic changes - No breaking changes - Message clarity improved Co-authored-by: Maatify <130119162+Maatify@users.noreply.github.com>
1 parent 5d35586 commit 7e0ec44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

uploader/UploadBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public function upload(): array
176176
// Set the target path for the file upload
177177
$basePath = realpath($this->upload_folder);
178178
if ($basePath === false) {
179-
return $this->returnError('Invalid file path.');
179+
return $this->returnError('Invalid upload folder.');
180180
}
181181
$basePath = (string)$basePath;
182182
$target_path = $basePath . '/' . $file;

0 commit comments

Comments
 (0)