Parameters are not included in multipart POST requests
fluiddot opened this issue · 0 comments
fluiddot commented
Expected behavior
Parameters argument of multipartPOST
function should be included in the POST request.
Actual behavior
Parameters are not included.
Steps to reproduce the behavior
multipartPOST
function is only used in the following places:
MediaServiceRemoteREST.uploadProgress
(one item version, multiple items version)PostServiceRemoteREST.createPost with media
(looks like this function is not currently being used)
The easiest way to reproduce the bug is by adding items from the free photo library as they include as the caption value its photo credit in the upload parameters.
- Go to the media screen.
- Tap on
+
button. - Tap on
Free Photo Library
. - Search any term.
- Tap one or multiple items.
- Tap on
Add
button. - Wait for the items to be uploaded.
- Tap on one of the uploaded items.
- Check that the caption value is empty.
WordPressKit Environment
- WordPressKit Version 4.25-beta
- OS: iOS 14.0
- Device: iPhone 8 (simulator)
- Xcode Version: Xcode 12.0
Additional Context
No.