}
if( getChkOnly ) {
msg.add("GetCHKOnly=true");
msg.add("PriorityClass=3");
} else {
final FreenetPriority prio;
if( type == FcpHandler.TYPE_FILE ) {
if (doMime) {
msg.add("Metadata.ContentType=" + DefaultMIMETypes.guessMIMEType(sourceFile.getAbsolutePath()));
} else {
msg.add("Metadata.ContentType=application/octet-stream"); // force this to prevent the node from filename guessing due dda!
}
if( ulItem != null) {
prio = ulItem.getPriority();
} else {
prio = FreenetPriority.getPriority(Core.frostSettings.getIntValue(SettingsClass.FCP2_DEFAULT_PRIO_FILE_UPLOAD));
}
} else if( type == FcpHandler.TYPE_MESSAGE ) {
prio = FreenetPriority.getPriority(Core.frostSettings.getIntValue(SettingsClass.FCP2_DEFAULT_PRIO_MESSAGE_UPLOAD));
} else {
if( ulItem != null) {
prio = ulItem.getPriority();
} else {
prio = FreenetPriority.MEDIUM;
}
}
msg.add("PriorityClass=" + prio.getNumber());
}
msg.add("Persistence=connection");
if (useDDA) {