Search code examples
iphoneportletliferay-7bad-request

Multi Part/Form-data action request is not working on iPhone Liferay 7


Hello i am having custom user profile portlet in which i am updating user detail, user password and user profile picture. I can do all this operation successfully from desktop, android phone and iPhone 7, but from iPhone6/6s or iPad i am getting bad request (400) error from the server if i only change/edit the input fields, All works fine if i upload new image and change/edit other fields.

I am using Lifeary CE GA 5, tomcat bundle.

I don't have any clue how to debug this, any help would be appreciate.

Thanks, Dipti


Solution

  • In our case the problem was in the submit button. It was defined as an anchor with jQuery submit() in onClick action. We changed it to regular <button type="submit" ...> and the problem with iphone has gone. Hope it helps.