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/*");
}
Activity
Ted Goddard
created issue -
Ted Goddard
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Steve Maryka [ steve.maryka ] | Judy Guglielmin [ judy.guglielmin ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #32656 | Fri Dec 07 11:05:55 MST 2012 | judy.guglielmin | |
Files Changed | ||||
MODIFY
/icemobile/trunk/icemobile/core/src/main/java/org/icemobile/renderkit/DeviceCoreRenderer.java
|
Judy Guglielmin
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
when I tested this, this worked well, as a filter to eliminating possible files that were of incorrect type to upload. Which browser are you referring to? I tested on desktop Chrome, Safari, Firefox and IE9 when I implemented this. Something may have changed since then, so would rather document that, otherwise, user will be able to attempt to upload any filetype (rather than the file chooser filtering out some) and the server will complain on the decode of these components.