Let's say i first upload a productpicture via the /api/{version}/Uploads/ProductImages endpoint with an .jpg fileextension. Then i want to update this productpicture with a .png extension and will also set the "PictureId" parameter in the form-data. Then the server processes without any error but the response tells me the original .jpg file isn't replaced. If I test the same in the same way but then with the same file extension then the files do get replaced by the newly uploaded one.
Edit:
Tried to reproduce it with the SmartStore.WebApi.Client and everything worked fine. After doing this my application also worked fine? So don't know exactly what happend…
Will do some more testing. If it occurs again I will let it know.
Question:
Does it matter if filename and PictureID are in a different order?
The document states this:
Content-Disposition: form-data; name="my-file-1"; filename="Background_2.png"; PictureId="3824
But it my application I send it like this:
Content-Disposition: form-data; name="my-file-1"; PictureId="3824; filename="Background_2.png"
Bearbeitet von TripleNico, 30 April 2020 - 16:30,