I have 2 problems; The first is that in a website that I am creating, when the user uploads photographs, I take them with a javascript function and convert them to a base64 string, and then pass them to the server more quickly, and convert them from string to image with Php from the server. This works perfectly from any mobile browser. The problem appears when I use an iPhone with Safari to load the image, in which case, the function that converts the image to a base64 string does not run, nor does it throw anything at all. The base64 string just does not reach the server.
The 2nd problem is that; when I enable the 'Web Inspector' of the iPhone Safari to see the source code of the pages I'm visiting live (with the development options> iPhone> website visited) on my mac, everything works perfectly, start to execute the javascript function that makes the conversion, and there is no problem with the load.
This last thing is very strange and makes it impossible for me to find out what the problem is, since it depends on whether my iPhone is connected by usb to my Mac so that the loading of the images on the site works correctly or not.
Any kind of help will be welcome. Thank you very much!