{"action":"created","issue":{"url":"https://api.github.com/repos/CodeSleeve/stapler/issues/74","labels_url":"https://api.github.com/repos/CodeSleeve/stapler/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/CodeSleeve/stapler/issues/74/comments","events_url":"https://api.github.com/repos/CodeSleeve/stapler/issues/74/events","html_url":"https://github.com/CodeSleeve/stapler/issues/74","id":34450764,"number":74,"title":"On uploading file through Stapler I get Symfony \\ Component \\ HttpFoundation \\ File \\ Exception \\ FileNotFoundException The file \"1.png\" does not exist","user":{"login":"mdunbavan","id":671281,"avatar_url":"https://avatars.githubusercontent.com/u/671281?v=3","gravatar_id":"","url":"https://api.github.com/users/mdunbavan","html_url":"https://github.com/mdunbavan","followers_url":"https://api.github.com/users/mdunbavan/followers","following_url":"https://api.github.com/users/mdunbavan/following{/other_user}","gists_url":"https://api.github.com/users/mdunbavan/gists{/gist_id}","starred_url":"https://api.github.com/users/mdunbavan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdunbavan/subscriptions","organizations_url":"https://api.github.com/users/mdunbavan/orgs","repos_url":"https://api.github.com/users/mdunbavan/repos","events_url":"https://api.github.com/users/mdunbavan/events{/privacy}","received_events_url":"https://api.github.com/users/mdunbavan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-05-28T09:43:35Z","updated_at":"2015-01-04T08:19:10Z","closed_at":"2014-06-06T14:11:04Z","body":"Hi,\r\n\r\nI have been using Stapler for ages now.\r\n\r\nAll of a sudden I get the error above when uploading files now on my local machine.\r\n\r\nIs this a bug? Here is the stack trace from the log file:\r\n\r\n[2014-05-28 09:40:21] local.ERROR: exception 'Symfony\\Component\\HttpFoundation\\File\\Exception\\FileNotFoundException' with message 'The file \"1.png\" does not exist' in /Freelance/Current Projects/mbm-site/laravel/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/File.php:41\r\nStack trace:\r\n#0 /Freelance/Current Projects/mbm-site/laravel/vendor/codesleeve/stapler/src/Codesleeve/Stapler/IOWrapper.php(96): Symfony\\Component\\HttpFoundation\\File\\File->__construct('1.png', '1.png')\r\n#1 /Freelance/Current Projects/mbm-site/laravel/vendor/codesleeve/stapler/src/Codesleeve/Stapler/IOWrapper.php(29): Codesleeve\\Stapler\\IOWrapper->createFromString('1.png')\r\n#2 /Freelance/Current Projects/mbm-site/laravel/vendor/codesleeve/stapler/src/Codesleeve/Stapler/Attachment.php(129): Codesleeve\\Stapler\\IOWrapper->make('1.png')\r\n#3 /Freelance/Current Projects/mbm-site/laravel/vendor/codesleeve/stapler/src/Codesleeve/Stapler/Stapler.php(123): Codesleeve\\Stapler\\Attachment->setUploadedFile('1.png')\r\n#4 /Freelance/Current Projects/mbm-site/laravel/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(340): Post->setAttribute('hero_image', '1.png')\r\n#5 /Freelance/Current Projects/mbm-site/laravel/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1326): Illuminate\\Database\\Eloquent\\Model->fill(Array)\r\n#6 /Freelance/Current Projects/mbm-site/laravel/app/controllers/PostsController.php(157): Illuminate\\Database\\Eloquent\\Model->update(Array)\r\n#7 [internal function]: PostsController->update('85')\r\n#8 /Freelance/Current Projects/mbm-site/laravel/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(231): call_user_func_array(Array, Array)\r\n#9 /Freelance/Current Projects/mbm-site/laravel/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(93): Illuminate\\Routing\\Controller->callAction('update', Array)\r\n#10 /Freelance/Current Projects/mbm-site/laravel/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(62): Illuminate\\Routing\\ControllerDispatcher->call(Object(PostsController), Object(Illuminate\\Routing\\Route), 'update')\r\n#11 /Freelance/Current Projects/mbm-site/laravel/vendor/laravel/framework/src/Illuminate/Routing/Router.php(934): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request), 'PostsController', 'update')\r\n#12 [internal function]: Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}('85')\r\n#13 /Freelance/Current Projects/mbm-site/laravel/vendor/laravel/framework/src/Illuminate/Routing/Route.php(105): call_user_func_array(Object(Closure), Array)\r\n#14 /Freelance/Current Projects/mbm-site/laravel/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1000): Illuminate\\Routing\\Route->run(Object(Illuminate\\Http\\Request))\r\n#15 /Freelance/Current Projects/mbm-site/laravel/vendor/laravel/framework/src/Illuminate/Routing/Router.php(968): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\r\n#16 /Freelance/Current Projects/mbm-site/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(738): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\r\n#17 /Freelance/Current Projects/mbm-site/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(708): Illuminate\\Foundation\\Application->dispatch(Object(Illuminate\\Http\\Request))\r\n#18 /Freelance/Current Projects/mbm-site/laravel/vendor/laravel/framework/src/Illuminate/Http/FrameGuard.php(38): Illuminate\\Foundation\\Application->handle(Object(Illuminate\\Http\\Request), 1, true)\r\n#19 /Freelance/Current Projects/mbm-site/laravel/vendor/laravel/framework/src/Illuminate/Session/Middleware.php(72): Illuminate\\Http\\FrameGuard->handle(Object(Illuminate\\Http\\Request), 1, true)\r\n#20 /Freelance/Current Projects/mbm-site/laravel/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php(47): Illuminate\\Session\\Middleware->handle(Object(Illuminate\\Http\\Request), 1, true)\r\n#21 /Freelance/Current Projects/mbm-site/laravel/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php(51): Illuminate\\Cookie\\Queue->handle(Object(Illuminate\\Http\\Request), 1, true)\r\n#22 /Freelance/Current Projects/mbm-site/laravel/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Illuminate\\Cookie\\Guard->handle(Object(Illuminate\\Http\\Request), 1, true)\r\n#23 /Freelance/Current Projects/mbm-site/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(606): Stack\\StackedHttpKernel->handle(Object(Illuminate\\Http\\Request))\r\n#24 /Freelance/Current Projects/mbm-site/laravel/public/index.php(49): Illuminate\\Foundation\\Application->run()\r\n#25 /Freelance/Current Projects/mbm-site/laravel/server.php(19): require_once('/Freelance/Curr...')\r\n#26 {main} [] []\r\n\r\nCheers,\r\nMark"},"comment":{"url":"https://api.github.com/repos/CodeSleeve/stapler/issues/comments/68625090","html_url":"https://github.com/CodeSleeve/stapler/issues/74#issuecomment-68625090","issue_url":"https://api.github.com/repos/CodeSleeve/stapler/issues/74","id":68625090,"user":{"login":"pursuantsolutions","id":10257655,"avatar_url":"https://avatars.githubusercontent.com/u/10257655?v=3","gravatar_id":"","url":"https://api.github.com/users/pursuantsolutions","html_url":"https://github.com/pursuantsolutions","followers_url":"https://api.github.com/users/pursuantsolutions/followers","following_url":"https://api.github.com/users/pursuantsolutions/following{/other_user}","gists_url":"https://api.github.com/users/pursuantsolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/pursuantsolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pursuantsolutions/subscriptions","organizations_url":"https://api.github.com/users/pursuantsolutions/orgs","repos_url":"https://api.github.com/users/pursuantsolutions/repos","events_url":"https://api.github.com/users/pursuantsolutions/events{/privacy}","received_events_url":"https://api.github.com/users/pursuantsolutions/received_events","type":"User","site_admin":false},"created_at":"2015-01-04T08:19:09Z","updated_at":"2015-01-04T08:19:09Z","body":"Same issue, but I was using form helpers... so adding:\r\n    'files'=>true\r\nfixed my issue..."}}