2,211 questions
1
vote
1
answer
44
views
How to use PUT with ngx-uploadx?
I'm using Angular 20 and ngx-uploadx, but I can't seem to select a method for the API request. How can I select the method for the request, for example PUT?
This is my code:
const uploadOptions: ...
0
votes
2
answers
69
views
Laravel API: PUT request with multipart/form-data returns empty request when using Swagger or Postman [duplicate]
I'm working on a Laravel 10.x project with an API that allows updating an event using a PUT /events/{id} endpoint. This endpoint accepts multipart/form-data to optionally upload an image and pdf, and ...
-5
votes
1
answer
110
views
The PUT method is not supported for route post. Supported methods: GET, HEAD, POST [duplicate]
I'm using Laravel 12 now.
And, in the document of laravel.com, descript about @method Blade directive like below:
https://laravel.com/docs/12.x/blade#method-field
Method Field
Since HTML forms can't ...
3
votes
1
answer
62
views
Why am I getting a 404 status code from my PUT method, when the GET method returns 200?
The method saveToDatabase() that I use to store the list of questions to my db.json on Github, returns 404 status code from the PUT method. Whereas, the same method returns a 200 status code when ...
0
votes
1
answer
55
views
AWS - put data on S3 results in TimeOutError
I am creating a dataset on AWS S3, for their Opendata program.
I am fetching audio files, which are already stored on S3.
I then segment them into smaller audio chunks, and putting those on S3 again.
...
1
vote
1
answer
325
views
Laravel/Inertia js/React js PUT Request Form Data Not Fully Received on Update When Including Image Upload
I'm facing a strange issue in my Laravel Inertia.js project. I can successfully create new 'Ville' resources, including image uploads. Updates also work fine if I don't upload a new image. However, ...
0
votes
0
answers
39
views
Error: 400 - {"message":"Invalid json data"} While using Post method in Unity
I am trying to send a PUT request using UnityWebRequest to update game data on a server. However, I keep getting the error:
css
Copy
Edit
Error: 400 - {"message":"Invalid json data"...
0
votes
0
answers
56
views
JPA PUT request not triggering 500 code instead of 409
I'm working on a simple DB and I need to have an error 409 show up in Postman if when updating the patient record the email has already been used by another patient in the DB. I'm getting the 409 just ...
1
vote
0
answers
48
views
Error method PUT HTTPS IIS 10 Angular 16 Windows Server 2019
I have a Web Site (Angular 16). That's deploy in IIS 10 (HTTPS port 443 with a Certificate)
I have ARR enabled, and on my web site tengo a rewrite ruler.
My back-end is in Node.js. It's running in the ...
1
vote
1
answer
70
views
how to pass data to redux toolkit mutation
In component,
const [ updateproductapi ] = useUpdateProductMutation()
formdata.append("product_name", product.product_name);
formdata.append("product_price", product.product_price);...
1
vote
1
answer
63
views
Im getting 403 Error When put image to api
I'm getting 403 response with this error page. I'm sure my API token is correct, because my other functions working very well.
<Error>
<Code>SignatureDoesNotMatch</Code>
...
1
vote
0
answers
29
views
Translating RestTemplate to WebClient, PUT with empty Body
I have this code in Java 8 using RestTemplate.
@Override
public ResponseCambioEstadoDTO actualizarLead(String idLead) {
Map<String, String> uriVariables = new HashMap<>();
...
2
votes
1
answer
130
views
LWP PUT of a Large File Upload Without Form Data
I'm trying to implement Google's YouTube video uploading API in Perl, which, alas has no library for such. I've run into an issue with the actual PUT to upload the video file. LWP::UserAgent has a ...
0
votes
1
answer
75
views
If PATCH can do everything that PUT can do then why even PUT exists? [duplicate]
If PATCH can do everything that PUT can do then why even PUT exists?
I researched a lot on this topic and I am able to know basic difference between the two.
PUT is for creating or updating/replacing ...
0
votes
1
answer
44
views
GitLab package manager adds WebKitFormBoundary inside my files
I've built a small HTML/JS page that uses GitLab API to upload files into the Package Registry like:
<input class="form-control mb-1" type="file" id="formFile" />
&...
-2
votes
2
answers
75
views
Why do I have to pass data through param in Laravel?
I'm developing a laravel api using resource controller. There I have to use PUT method for updating something.
When I try to pass data through body with form-data the validation error happens. I have ...
0
votes
1
answer
44
views
Cannot access PUT request body params [closed]
I am making this PUT request via Postman that has form-data body:
PUT request
And trying to populate the model using this line:
$model->load(Yii::$app->request->getBodyParams(), '');
Trying ...
0
votes
1
answer
58
views
undefined body in PUT request
I have a React / Redux / Node app that is making a request to update a user:
client/src/components/pages/AlignmentPage.tsx:
const AlignmentPage = () => {
const dispatch = useAppDispatch();
...
1
vote
3
answers
2k
views
InertiaJS file upload doesn't work with PUT method
I have form to update a product with necessary data (name,description..etc), it includes an input of type file, on change it will call function handleImage, which will then store the uploaded file in ...
1
vote
0
answers
1k
views
PUT Request to JSON Server Returns 404 Not Found for Array Update
I'm working on a React project using JSON Server as a mock backend, but I'm encountering a 404 Not Found error when attempting to send a PUT request to update an array of items. My JSON Server is set ...
-1
votes
1
answer
64
views
Python session.put return 415: Unsupported Media Type
I do not know why I receive the respone:
"415: Unsupported Media Type"
I try to put new values.
When I get some values it works fine.
code snippet:
headers = {}
headers["charset"] =...
1
vote
2
answers
191
views
Can't do Put requests on API hosted on my laptop and executed on another laptop [duplicate]
I just couldn't find the answer to my problem online and I hope someone can help me.
I made an API with nodejs and express (with some help from YouTube and Google).
I was able to do some get and put ...
1
vote
0
answers
31
views
update crud angular formControlName databinding
hello i am trying to update my report chambre ,
when i click modifier i should receive the data of room already selected ( idChambre)
all the other fields are working good but not for idChambre
this ...
0
votes
1
answer
62
views
Excel PUT to API endpoint failing with bad request
I'm trying to duplicate an Insomnia POST request to an API endpoint in Excel. I believe I'm close but I'm obviously missing something in the Excel Power Query request.
Here is the working CURL request ...
0
votes
1
answer
2k
views
How can I use Playwright to PUT multipart form-data in Python?
I am trying to use Playwright to PUT multipart form-data with the Python API.
Here is the relevant documentation.
However, it's not clear how to structure the multipart argument.
The docs say:
...