}
if (fileData != null && (fileData.bytesRead() > 0 || booleanValueForBinding("newMode"))) {
String filename = fileData.filename();
setValueForBinding(filename, BindingNames.filename);
setValueForBinding(fileData.mimeType(), BindingNames.mimeType);
setValueForBinding(fileData.fileIncomplete(), BindingNames.fileSizeExceeded);
// Only one binding for file data is honored. Precedence order: file, input stream, byte array.
if (parent().hasBinding(BindingNames.file)) {
File file = fileData.file();