{"action":"created","issue":{"url":"https://api.github.com/repos/fengyuanchen/cropper/issues/498","labels_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/498/labels{/name}","comments_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/498/comments","events_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/498/events","html_url":"https://github.com/fengyuanchen/cropper/issues/498","id":114357255,"number":498,"title":"sending the cropped image to a laravel route","user":{"login":"kickthemooon","id":7913974,"avatar_url":"https://avatars.githubusercontent.com/u/7913974?v=3","gravatar_id":"","url":"https://api.github.com/users/kickthemooon","html_url":"https://github.com/kickthemooon","followers_url":"https://api.github.com/users/kickthemooon/followers","following_url":"https://api.github.com/users/kickthemooon/following{/other_user}","gists_url":"https://api.github.com/users/kickthemooon/gists{/gist_id}","starred_url":"https://api.github.com/users/kickthemooon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kickthemooon/subscriptions","organizations_url":"https://api.github.com/users/kickthemooon/orgs","repos_url":"https://api.github.com/users/kickthemooon/repos","events_url":"https://api.github.com/users/kickthemooon/events{/privacy}","received_events_url":"https://api.github.com/users/kickthemooon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-30T21:14:34Z","updated_at":"2015-11-01T03:46:15Z","closed_at":null,"body":"so I am using your example from the download with main.js, main.css and crop.php. Now i would like to image to be cropped on the client side and be sent to a laravel route instead of the crop.php:\r\n```\r\n<form class=\"avatar-form\" action=\"/user/{{ $user->slug }}/avatar\" enctype=\"multipart/form-data\" method=\"post\">\r\n```\r\nthe laravel controller method:\r\n```\r\npublic function avatarUpload(Request $request, $slug)\r\n    {\r\n        $user = User::findBySlug($slug);\r\n\r\n        $user->clearMediaCollection('avatars');\r\n\r\n        $user->addMedia($request->file('file'))->toCollectionOnDisk('avatars', 'avatars');\r\n\r\n        return redirect('/user/' . $slug . '/edit');\r\n    }\r\n```\r\n\r\ndoes anyone have suggestions?"},"comment":{"url":"https://api.github.com/repos/fengyuanchen/cropper/issues/comments/152791800","html_url":"https://github.com/fengyuanchen/cropper/issues/498#issuecomment-152791800","issue_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/498","id":152791800,"user":{"login":"fengyuanchen","id":3456749,"avatar_url":"https://avatars.githubusercontent.com/u/3456749?v=3","gravatar_id":"","url":"https://api.github.com/users/fengyuanchen","html_url":"https://github.com/fengyuanchen","followers_url":"https://api.github.com/users/fengyuanchen/followers","following_url":"https://api.github.com/users/fengyuanchen/following{/other_user}","gists_url":"https://api.github.com/users/fengyuanchen/gists{/gist_id}","starred_url":"https://api.github.com/users/fengyuanchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengyuanchen/subscriptions","organizations_url":"https://api.github.com/users/fengyuanchen/orgs","repos_url":"https://api.github.com/users/fengyuanchen/repos","events_url":"https://api.github.com/users/fengyuanchen/events{/privacy}","received_events_url":"https://api.github.com/users/fengyuanchen/received_events","type":"User","site_admin":false},"created_at":"2015-11-01T03:46:15Z","updated_at":"2015-11-01T03:46:15Z","body":"You mean the same issue as #489?"}}