Problem uploading iPhone to a Cordova app

Asked

Viewed 23 times

0

Hello, I am working on a project in which I have to serve an external and responsive website from a Cordova app. Almost everything works as expected, but I’m having problems with uploading images on iPhone.

How it works on the site: After selecting the image it is converted to Base64 and submitted to the server.

Problem: When trying to upload by iPhone it offers the option to take a photo at the moment. When taking the photo in the Portrait orientation this image is "lying down" as if it forced you to take the photo in the Landscape position.

I would like to know how to solve this, just by putting the image in the right orientation, someone can help me?

Another option would be to disable the photo taking option, someone knows how to remove this option?

If I allow the person just select in the files this will solve my problem.

  • What language are you using? Have you looked here? https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-camera/

  • I’m using php in the backend. I was able to solve with a function that checks the orientation of the image and fixes, I could not find a better solution. At least it worked.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.