Day Job XPages

Apple’s iOS8 Breaks uploading Photos

In the day job I have users that use an iPad to upload photos to an XPages application.

I just learned today that this breaks with iOS8.  More information can be found here:


I’m hopeful this is a BUG that will be fix and not something Apple has intentionally done.

For now the plan is to just hide the upload button if you’re running iOS 8.  Note we use my fileVault thing which will likely be my next blog post and not the file upload control that comes with XPages.


Below is the quick and dirty code I’m going to try and use to hide the button to iOS 8 users.  This will not work most likely for iOS 8.0.1.  Since we don”t know if it’ll be fixed then we’ll simply cross that bridge when we come to it.

Note: This code is intended to run on Domino 9.0.1 so I make use of the deviceBean that’s built in.

UPDATE: Made some updates to the code

function isApple8() {

var uAgent = context.getUserAgent().getUserAgent();

if ((deviceBean.isIpad()) || (deviceBean.isIphone())) {

// Note the space after the 8

if (uAgent.indexOf(“8.0 “) > 0) {

// This is iOS 8

return true;

} else {

// This is iOS but NOT version 8

return false;


} else {

// this is NOT iOS

return false;