{"action":"opened","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/877","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/877/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/877/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/877/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/877","id":94814067,"number":877,"title":"PHPSlim Framework + Why GET request ","user":{"login":"romainFan3466","id":10827635,"avatar_url":"https://avatars.githubusercontent.com/u/10827635?v=3","gravatar_id":"","url":"https://api.github.com/users/romainFan3466","html_url":"https://github.com/romainFan3466","followers_url":"https://api.github.com/users/romainFan3466/followers","following_url":"https://api.github.com/users/romainFan3466/following{/other_user}","gists_url":"https://api.github.com/users/romainFan3466/gists{/gist_id}","starred_url":"https://api.github.com/users/romainFan3466/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romainFan3466/subscriptions","organizations_url":"https://api.github.com/users/romainFan3466/orgs","repos_url":"https://api.github.com/users/romainFan3466/repos","events_url":"https://api.github.com/users/romainFan3466/events{/privacy}","received_events_url":"https://api.github.com/users/romainFan3466/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-13T21:18:30Z","updated_at":"2015-07-13T21:18:30Z","closed_at":null,"body":"Hi, \r\nI picked up the solution from @logusgraphics  at [textAngular issue](https://github.com/fraywing/textAngular/issues/213#issuecomment-111205155) to implement ng-file-upload into textAngular.\r\nThe problem is I have an issue on request made : \r\n\r\n    GET http://localhost/myblog/app/API/upload/img/ 404 (Not Found)\r\n\r\nIn my controller I have : \r\n\r\n    $scope.upload = function(){\r\n        Upload.upload({\r\n            url: API/upload/img',\r\n            file: $scope.files[0],\r\n            method: 'POST'\r\n        }).progress(function (evt) {\r\n            $scope.progress = parseInt(100.0 * evt.loaded / evt.total);\r\n        }).success(function (data) {\r\n            $scope.progress = 0;\r\n            $scope.image = data.dir+data.filename;\r\n        });\r\n    };\r\n\r\nOn the server side I use PHP Slim framework to make an API. I did it according to the wiki provided  : \r\n\r\n    $app->post('/upload/img', function(){\r\n\t    $filename = $_FILES['file']['name'];\r\n\t    $destination = '/upload/img/' . $filename;\r\n\t    move_uploaded_file( $_FILES['file']['tmp_name'] , $destination );\r\n\t    echoResponse(200, null);\r\n    });\r\n\r\nMy folder `upload/img` has the write/read permissions for all. \r\n\r\nWhy do I get a GET request to this `upload/img/`  ? I agree if the request would be with the file name but why to this address ? I can't upload my image anymore with the POST method.\r\nCould you tell me if something is wrong in my conf ? \r\nThanks in advance.\r\n"}}