8000 bug #9784 [HttpFoundation] Removed ini check to make Uploadedfile wor… · symfony/symfony@88f670c · GitHub
[go: up one dir, main page]

Skip to content

Commit 88f670c

Browse files
committed
bug #9784 [HttpFoundation] Removed ini check to make Uploadedfile work on Google App Engine (micheleorselli)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #9784). Discussion ---------- [HttpFoundation] Removed ini check to make Uploadedfile work on Google App Engine | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes related to #9238 Commits ------- ecb6481 removed ini check to make uploadedfile work on gae
2 parents af1d219 + ecb6481 commit 88f670c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Symfony/Component/HttpFoundation/File/UploadedFile.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ class UploadedFile extends File
9191
*/
9292
public function __construct($path, $originalName, $mimeType = null, $size = null, $error = null, $test = false)
9393
{
94-
if (!ini_get('file_uploads')) {
95-
throw new FileException(sprintf('Unable to create UploadedFile because "file_uploads" is disabled in your php.ini file (%s)', get_cfg_var('cfg_file_path')));
96-
}
97-
9894
$this->originalName = $this->getName($originalName);
9995
$this->mimeType = $mimeType ?: 'application/octet-stream';
10096
$this->size = $size;

0 commit comments

Comments
 (0)
0