Skip to content

Commit

Permalink
fix: Fix to Setting Size of Test Upload File
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Apr 15, 2024
1 parent 94a2d06 commit 13f7095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webfiori/http/APITestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function addFile(string $fileIdx, string $filePath, bool $reset = false)

$_FILES[$fileIdx]['name'][] = $info['name'];
$_FILES[$fileIdx]['type'][] = mime_content_type($path);
$_FILES[$fileIdx]['size'][] = filesize($this->getAbsolutePath());
$_FILES[$fileIdx]['size'][] = filesize($path);
$_FILES[$fileIdx]['tmp_name'][] = $path;
$_FILES[$fileIdx]['error'][] = 0;
}
Expand Down

0 comments on commit 13f7095

Please sign in to comment.