{"action":"created","issue":{"url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/88","labels_url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/88/comments","events_url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/88/events","html_url":"https://github.com/GetmeUK/ContentTools/issues/88","id":124709711,"number":88,"title":"Saving not working when i insert youtube embed","user":{"login":"Nisthar","id":11994157,"avatar_url":"https://avatars.githubusercontent.com/u/11994157?v=3","gravatar_id":"","url":"https://api.github.com/users/Nisthar","html_url":"https://github.com/Nisthar","followers_url":"https://api.github.com/users/Nisthar/followers","following_url":"https://api.github.com/users/Nisthar/following{/other_user}","gists_url":"https://api.github.com/users/Nisthar/gists{/gist_id}","starred_url":"https://api.github.com/users/Nisthar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nisthar/subscriptions","organizations_url":"https://api.github.com/users/Nisthar/orgs","repos_url":"https://api.github.com/users/Nisthar/repos","events_url":"https://api.github.com/users/Nisthar/events{/privacy}","received_events_url":"https://api.github.com/users/Nisthar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GetmeUK/ContentTools/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-04T07:27:59Z","updated_at":"2016-01-05T04:17:29Z","closed_at":null,"body":"Hi, \r\nContentTools is an amazing tool. \r\nThe saving is not working when i insert a youtube video into the html. I am saving the contents to a html using laravel backend. I tried to print out the content that i am posting to my server. I am getting the full code including the iframe. But when i save it, I can't see anything in the html file. It works if i remove the youtube video.\r\n"},"comment":{"url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/comments/168891800","html_url":"https://github.com/GetmeUK/ContentTools/issues/88#issuecomment-168891800","issue_url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/88","id":168891800,"user":{"login":"Nisthar","id":11994157,"avatar_url":"https://avatars.githubusercontent.com/u/11994157?v=3","gravatar_id":"","url":"https://api.github.com/users/Nisthar","html_url":"https://github.com/Nisthar","followers_url":"https://api.github.com/users/Nisthar/followers","following_url":"https://api.github.com/users/Nisthar/following{/other_user}","gists_url":"https://api.github.com/users/Nisthar/gists{/gist_id}","starred_url":"https://api.github.com/users/Nisthar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nisthar/subscriptions","organizations_url":"https://api.github.com/users/Nisthar/orgs","repos_url":"https://api.github.com/users/Nisthar/repos","events_url":"https://api.github.com/users/Nisthar/events{/privacy}","received_events_url":"https://api.github.com/users/Nisthar/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T04:17:29Z","updated_at":"2016-01-05T04:17:29Z","body":"Sure. Here's the code:\r\n```php\r\n        public function post(Request $request)\r\n\t  {\r\n\t\t$content = $request->review;\r\n\t\t\tFile::put(public_path() . '/contents/'.Session::get('file').'.html', $content);\r\n\t\t\t$file = Content::findOrFail(Session::get('Id'));\r\n\t\t\t$file->active = 0;\r\n\t\t\tif($file->save())\r\n\t\t\t{\r\n\t\t\t\treturn \"true\";\r\n\t\t\t}else{\r\n\t\t\t\treturn \"false\";\r\n\t\t\t}\t\r\n\t}\r\n```\r\nI Don't know what's wrong with this code. I can't find any error. Because this only get breaks when i add the youtube iframe. if i add it the filesize of the saved file becomes 0. Otherwise it will work fine.\r\nThere are two possibilities:\r\n1. The html is breaking when i add the iframe. So the server only saves \" \".\r\n2. There is some limit in PHP for accepting big files.\r\n\r\n(Sorry for my bad english) "}}