removed ini check to make uploadedfile work on gae

This commit is contained in:
Michele Orselli 2013-12-15 15:28:47 +01:00 committed by Fabien Potencier
parent af1d21954e
commit ecb6481117

View File

@ -91,10 +91,6 @@ class UploadedFile extends File
*/
public function __construct($path, $originalName, $mimeType = null, $size = null, $error = null, $test = false)
{
if (!ini_get('file_uploads')) {
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')));
}
$this->originalName = $this->getName($originalName);
$this->mimeType = $mimeType ?: 'application/octet-stream';
$this->size = $size;