Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 88f670c

Browse filesBrowse 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
Copy full SHA for 88f670c

File tree

Expand file treeCollapse file tree

1 file changed

+0
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-4
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/File/UploadedFile.php
-4Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.