Skip to content

Commit

Permalink
Merge pull request #140 from j-jzk/php-move-uploaded-file-pr
Browse files Browse the repository at this point in the history
Use move_uploaded_file instead of rename in PhpContainer
  • Loading branch information
back2dos authored Sep 3, 2024
2 parents e56ea8c + 218ed93 commit 021cc65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tink/http/containers/PhpContainer.hx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class PhpContainer implements Container {
),
saveTo: function (path:String) return Future.sync(

if ( #if haxe4 untyped Global.rename(tmpName, path) #else untyped __call__('rename', tmpName, path) #end)
if ( #if haxe4 untyped Global.move_uploaded_file(tmpName, path) #else untyped __call__('move_uploaded_file', tmpName, path) #end)

Success(Noise)
else
Expand Down

0 comments on commit 021cc65

Please sign in to comment.