Skip to content

Commit

Permalink
Clean saveTempFile()
Browse files Browse the repository at this point in the history
  • Loading branch information
joanhey committed Sep 4, 2023
1 parent 8aa7ec8 commit 4f70bf3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ParseMultipart.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ protected static function parseMultipart(string $http_body, string $http_post_bo
protected static function saveTempFile($data): string
{
$tmp_file = \tempnam(\sys_get_temp_dir(), 'php');
$tmp_file = \tempnam(sys_get_temp_dir(), 'php');
file_put_contents($tmp_file,$data);
\file_put_contents($tmp_file,$data);
// delete tmp_file after send()

return $tmp_file;
Expand Down

0 comments on commit 4f70bf3

Please sign in to comment.