Details
Description
DeviceCoreRenderer sets the accept type which provides features on mobile devices but interferes with desktop uploads. The following code should be disabled for desktop browsers:
if (comptype.equals("camera")){
writer.writeAttribute("accept", "image/*");
}
if (comptype.equals("camcorder")){
writer.writeAttribute("accept", "video/*");
}
if (comptype.equals("microphone")){
writer.writeAttribute("accept", "audio/*");
}
if (comptype.equals("camera")){
writer.writeAttribute("accept", "image/*");
}
if (comptype.equals("camcorder")){
writer.writeAttribute("accept", "video/*");
}
if (comptype.equals("microphone")){
writer.writeAttribute("accept", "audio/*");
}
Safari allows upload of .mov files only.
Chrome allows uploads of .mp4 and .m4v files but not .mov files.
IE 10 allows uploads of .mov and .mp4 but not .m4v.
So, the browser detection of possible camcorder uploads is too restrictive.
Detection of image formats appeared to work, so the component should be modified to include only:
if (comptype.equals("camera"))
{ writer.writeAttribute("accept", "image/*"); }and not attempt to detect video or audio formats.