I have a constant complaint from users on mobile, but none of them have been able to actually explain their problem.
I have an iframe form on my site that allows the user to attach a photo:
<input type="hidden" name="attach">
<iframe id="iframe_attach" src="https://www.example.com/cgi-bin/upload_attachments.cgi?form_name=reply&width=640&bgcolor=%23FFFFFF" width="450" height="35" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
Then in upload_attachments.cgi:
<input type="file" name="attach" size="50" style="font-family: Arial, Tahoma, Helvetica; font-size: 11px" onChange="changeBack(); this.form.submit();">
I can post the entire upload_attachments.cgi if you want, but it's fairly lengthy. The purpose of the script is to upload the image to a /cache/ directory while the user stays on the page, resample it via Perl, then show the resized photo on the page without leaving. This could probably be rebuilt in Ajax and be a little smoother, it's just one of those things I built in 2012 and haven't had a need to rebuild it (yet).
I have no problem posting a photo from my phone's gallery, but other people constantly say things like "it doesn't work" (and, naturally, that's the only explanation they'll give).
Today, someone finally gave a little more info:
I will go to do a pic and it will take me all the way back out of the website I'm not sure what that means. I tried taking a photo from my phone, instead of uploading from the gallery... and it worked perfectly. Using a Samsung S6 Edge, I clicked the "Choose File" button, clicked "Camera", took a photo, clicked "OK", and it uploaded perfectly.
Then I tried my girlfriend's iPhone 6s (running iOS 10), and it uploaded perfectly, too. I tested her phone with both Chrome and Safari.
I asked the user what phone they're using, but it's been 24 hours and they haven't replied.
Can you guys suggest what the problem might be? I'm not opposed to rebuilding the program in Ajax instead of an iframe, but I'm concerned about going through a lot of trouble just to have the same problem.