{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/12350","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/12350/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/12350/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/12350/events","html_url":"https://github.com/laravel/framework/issues/12350","id":134395381,"number":12350,"title":"[5.2] After move of uploaded file,  missing temp file error. ","user":{"login":"trwilliams","id":12970505,"avatar_url":"https://avatars.githubusercontent.com/u/12970505?v=3","gravatar_id":"","url":"https://api.github.com/users/trwilliams","html_url":"https://github.com/trwilliams","followers_url":"https://api.github.com/users/trwilliams/followers","following_url":"https://api.github.com/users/trwilliams/following{/other_user}","gists_url":"https://api.github.com/users/trwilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/trwilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trwilliams/subscriptions","organizations_url":"https://api.github.com/users/trwilliams/orgs","repos_url":"https://api.github.com/users/trwilliams/repos","events_url":"https://api.github.com/users/trwilliams/events{/privacy}","received_events_url":"https://api.github.com/users/trwilliams/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":63,"created_at":"2016-02-17T20:48:17Z","updated_at":"2016-06-23T09:32:51Z","closed_at":"2016-04-03T09:23:05Z","body":"This will give an error\r\n\r\n`public function addPost(ImageAddRequest $request)\r\n    {\r\nif ($request->hasFile('image')){\r\n            $path = base_path().\"/public/storage/pages/\";\r\n            $image = $request->file('image');\r\n            $image->move($path, $image->getClientOriginalName());\r\n            $name = $request->name;\r\n        }\r\n}\r\n`\r\nany instance of request after move gives and error that the temp file can not be found.\r\n\r\nfound exactly the line that is causing issue.\r\n\r\nlaravel/framework/src/Illuminate/Http/UploadedFile.php\r\nLine 50\r\n\r\nIf I remove instanceof static it works fine.\r\n\r\nThe function is called from  laravel/framework/src/Illuminate/Http/Request.php \r\nLine 419"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/227997882","html_url":"https://github.com/laravel/framework/issues/12350#issuecomment-227997882","issue_url":"https://api.github.com/repos/laravel/framework/issues/12350","id":227997882,"user":{"login":"poizon001","id":5282326,"avatar_url":"https://avatars.githubusercontent.com/u/5282326?v=3","gravatar_id":"","url":"https://api.github.com/users/poizon001","html_url":"https://github.com/poizon001","followers_url":"https://api.github.com/users/poizon001/followers","following_url":"https://api.github.com/users/poizon001/following{/other_user}","gists_url":"https://api.github.com/users/poizon001/gists{/gist_id}","starred_url":"https://api.github.com/users/poizon001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poizon001/subscriptions","organizations_url":"https://api.github.com/users/poizon001/orgs","repos_url":"https://api.github.com/users/poizon001/repos","events_url":"https://api.github.com/users/poizon001/events{/privacy}","received_events_url":"https://api.github.com/users/poizon001/received_events","type":"User","site_admin":false},"created_at":"2016-06-23T09:32:50Z","updated_at":"2016-06-23T09:32:50Z","body":"string(40) \"The file \"/tmp/phpABBHzL\" does not exist\"\r\nstring(69) \"Symfony\\Component\\HttpFoundation\\File\\Exception\\FileNotFoundException\"\r\nstring(4121) \"#0 /home/vagrant/www/epicenter-api/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/File/UploadedFile.php(101): Symfony\\Component\\HttpFoundation\\File\\File->__construct('/tmp/phpABBHzL', true)\r\n#1 /home/vagrant/www/epicenter-api/app/bootstrap.php.cache(320): Symfony\\Component\\HttpFoundation\\File\\UploadedFile->__construct('/tmp/phpABBHzL', 'Screen Shot 201...', 'image/png', 153150, 0)\r\n#2 /home/vagrant/www/epicenter-api/app/bootstrap.php.cache(299): Symfony\\Component\\HttpFoundation\\FileBag->convertFileInformation(Array)\r\n#3 /home/vagrant/www/epicenter-api/app/bootstrap.php.cache(304): Symfony\\Component\\HttpFoundation\\FileBag->set('photo_data', Array)\r\n#4 /home/vagrant/www/epicenter-api/app/bootstrap.php.cache(292): Symfony\\Component\\HttpFoundation\\FileBag->add(Array)\r\n#5 /home/vagrant/www/epicenter-api/app/bootstrap.php.cache(287): Symfony\\Component\\HttpFoundation\\FileBag->replace(Array)\r\n#6 /home/vagrant/www/epicenter-api/app/bootstrap.php.cache(463): Symfony\\Component\\HttpFoundation\\FileBag->__construct(Array)\r\n#7 /home/vagrant/www/epicenter-api/app/bootstrap.php.cache(455): Symfony\\Component\\HttpFoundation\\Request->initialize(Array, Array, Array, Array, Array, Array, NULL)\r\n#8 /home/vagrant/www/epicenter-api/app/bootstrap.php.cache(1287): Symfony\\Component\\HttpFoundation\\Request->__construct(Array, Array, Array, Array, Array, Array, NULL)\r\n#9 /home/vagrant/www/epicenter-api/app/bootstrap.php.cache(489): Symfony\\Component\\HttpFoundation\\Request::createRequestFromFactory(Array, Array, Array, Array, Array, Array)\r\n#10 /home/vagrant/www/epicenter-api/src/Epicenter/ApiBundle/Listener/BuzzRequestListener.php(22): Symfony\\Component\\HttpFoundation\\Request::createFromGlobals()\r\n#11 /home/vagrant/www/epicenter-api/vendor/practo/buzz/lib/Buzz/Browser.php(130): Epicenter\\ApiBundle\\Listener\\BuzzRequestListener->preSend(Object(Buzz\\Message\\Request))\r\n#12 /home/vagrant/www/epicenter-api/vendor/practo/buzz/lib/Buzz/Browser.php(84): Buzz\\Browser->send(Object(Buzz\\Message\\Request))\r\n#13 /home/vagrant/www/epicenter-api/vendor/practo/buzz/lib/Buzz/Browser.php(48): Buzz\\Browser->call('http://www.prac...', 'PATCH', Array, 'practo_account_...')\r\n#14 /home/vagrant/www/epicenter-api/src/Epicenter/ApiBundle/Manager/ScoutEstablishmentManager.php(1492): Buzz\\Browser->patch('http://www.prac...', Array, 'practo_account_...')\r\n#15 /home/vagrant/www/epicenter-api/src/Epicenter/ApiBundle/Manager/ScoutEstablishmentPhotoManager.php(233): Epicenter\\ApiBundle\\Manager\\ScoutEstablishmentManager->updateSpacePractice(Object(Epicenter\\ApiBundle\\Entity\\ScoutEstablishment), Object(Symfony\\Component\\HttpFoundation\\Request))\r\n#16 /home/vagrant/www/epicenter-api/src/Epicenter/ApiBundle/Manager/ScoutEstablishmentPhotoManager.php(287): Epicenter\\ApiBundle\\Manager\\ScoutEstablishmentPhotoManager->add('479', '/tmp/ec-uploads...', Object(Symfony\\Component\\HttpFoundation\\Request), true)\r\n#17 /home/vagrant/www/epicenter-api/src/Epicenter/ApiBundle/Controller/ScoutEstablishmentController.php(333): Epicenter\\ApiBundle\\Manager\\ScoutEstablishmentPhotoManager->upload('479', Object(Symfony\\Component\\HttpFoundation\\File\\UploadedFile), Object(Symfony\\Component\\HttpFoundation\\Request))\r\n#18 [internal function]: Epicenter\\ApiBundle\\Controller\\ScoutEstablishmentController->postEstablishmentsUploadphotoAction('479')\r\n#19 /home/vagrant/www/epicenter-api/app/bootstrap.php.cache(3109): call_user_func_array(Array, Array)\r\n#20 /home/vagrant/www/epicenter-api/app/bootstrap.php.cache(3071): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)\r\n#21 /home/vagrant/www/epicenter-api/app/bootstrap.php.cache(3222): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\r\n#22 /home/vagrant/www/epicenter-api/app/bootstrap.php.cache(2444): Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\r\n#23 /home/vagrant/www/epicenter-api/web/app_dev.php(61): Symfony\\Component\\HttpKernel\\Kernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\r\n#24 {main}\"\r\n\r\nI am getting this error while uploading a file in post request which internally uses buzz browser to make another curl request. Which throws this exception."}}
{"actor":{"display_login":"poizon001"}}