{"action":"opened","issue":{"url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/462","labels_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/462/labels{/name}","comments_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/462/comments","events_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/462/events","html_url":"https://github.com/froala/wysiwyg-editor/issues/462","id":59567919,"number":462,"title":"Trying to integrate with Laravel. ","user":{"login":"zacksmash","id":6118407,"avatar_url":"https://avatars.githubusercontent.com/u/6118407?v=3","gravatar_id":"","url":"https://api.github.com/users/zacksmash","html_url":"https://github.com/zacksmash","followers_url":"https://api.github.com/users/zacksmash/followers","following_url":"https://api.github.com/users/zacksmash/following{/other_user}","gists_url":"https://api.github.com/users/zacksmash/gists{/gist_id}","starred_url":"https://api.github.com/users/zacksmash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zacksmash/subscriptions","organizations_url":"https://api.github.com/users/zacksmash/orgs","repos_url":"https://api.github.com/users/zacksmash/repos","events_url":"https://api.github.com/users/zacksmash/events{/privacy}","received_events_url":"https://api.github.com/users/zacksmash/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-02T23:15:10Z","updated_at":"2015-03-02T23:15:10Z","closed_at":null,"body":"Keep getting bad link as response, when uploading images.\r\n\r\nPHP (Laravel 4.2)\r\n`public function postImage()\r\n{   \r\n    // Get the uploaded file\r\n    $file = Input::file('ticket-image');\r\n    \r\n    // Set the destination path for the file\r\n    $destinationPath = base_path().('/public/img/ticket-images/');\r\n    \r\n    // Get the file extension from the uploaded file\r\n    $ext = $file->getClientOriginalExtension();\r\n    \r\n    // Set a file name using a prefix and the current datestamp, followed by the original extension\r\n    $fileName = 'ti-'.date_timestamp_get(date_create()).'.'.$ext;\r\n    \r\n    // Move the file to the destination path\r\n    $file->move($destinationPath, $fileName);\r\n    \r\n    // Create a JSON response for the editor\r\n    $path = 'link: \"'.URL::to('/').'/img/ticket-images/'.$fileName.'\"';\r\n    \r\n    // Log all the details\r\n    Log::info('{'.$path.'}');\r\n    \r\n    // Finally, return the response as JSON to the editor\r\n    return Response::json('{'.$path.'}');\r\n}\r\n`"}}