PUT Method not working
See original GitHub issueHi,
i got problem when i’m using method: “PUT” when uploading file.
Upload.upload({
url: APIROOT + 'categories/' + $routeParams.id,
data: data,
method: 'PUT'
}).then(function (response) {
ResultService(response.data);
}, function (response) {
ResultService(response.data);
}).finally(function () {
$scope.loading = false;
$scope.button_text = "Update";
});
At my server i can’t receive the data. But if i change method to “POST” i can receive it properly.
Any solution?
Issue Analytics
- State:
- Created 8 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
PUT method not working on API - Laracasts
"Method not allowed" means that you are trying to use the wrong HTTP request method on that route, e.g. sending a GET or...
Read more >The problem with HTTP PUT method and possible ways to ...
In this post I'm going to focus on the problem related to HTTP PUT method. I will show by example Web API HTTP...
Read more >Laravel 6.8 PUT Method not working, Showing Blank Page
You can get pointer into route file (web.php) but not into controller's Any function >>> That means pointer is not passing to controller....
Read more >PUT - HTTP - MDN Web Docs
The HTTP PUT request method creates a new resource or replaces a representation of the target resource with the request payload.
Read more >PUT method is not working - Kentico DevNet
I am able to use GET requests for existing contact and POST requests for creating new a contact but not able to get...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve got a solution and right now I’m still using it.
For example:
Add extra object to your data:
Its working for me. tested on Laravel.
Now laravel will assume that you want PUT method.
Same issue