Skip to content

Commit

Permalink
[BUGFIX] Replace mentions of HTTP_POST_FILES
Browse files Browse the repository at this point in the history
Mentions of $GLOBALS['HTTP_POST_FILES'] should be changed
to superglobal $_FILES.

Resolves: #20834
Releases: 6.0
Change-Id: I38b0a2eae02bff8f28d8f94fe18138cf22e920b2
Reviewed-on: https://review.typo3.org/19997
Reviewed-by: Francois Suter
Tested-by: Francois Suter
  • Loading branch information
Francois Suter committed Apr 15, 2013
1 parent e837d07 commit 55296cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ real documentation is found in the source scripts (and the

// Read uploaded file:
$uploadedTempFile = \TYPO3\CMS\Core\Utility\GeneralUtility::upload_to_tempfile(
$GLOBALS['HTTP_POST_FILES']['upload_ext_file']['tmp_name']
$_FILES['upload_ext_file']['tmp_name']
);
$fileContent = \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl($uploadedTempFile);
\TYPO3\CMS\Core\Utility\GeneralUtility::unlink_tempfile($uploadedTempFile);
Expand Down
2 changes: 1 addition & 1 deletion Documentation/ApiOverview/Typo3CoreEngine/Files/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ Command keywords and values
upload\_$id
:Value:
"data" = ID-number (points to the global var that holds the filename-
ref (:code:`$GLOBALS["HTTP_POST_FILES"]["upload_" . $id]["name"]`).
ref (:code:`$_FILES["upload_" . $id]["name"]`).

"target" = Absolute path to the target folder (destination)

Expand Down

0 comments on commit 55296cb

Please sign in to comment.