Commit 66aa62f7 by Nilu

S12964796 # Client - Incoming Issues (raised by Client) #Unclear why the…

S12964796 # Client - Incoming Issues (raised by Client) #Unclear why the supplied files are not 'valid'
parent 3dd4e079
......@@ -53,13 +53,15 @@ public class JobApplication extends BaseJobApplication
if(getCV() != null)
{
String contentType = getCV().getContentType();
context.check(contentType.contains("msword") || contentType.contains("opendocument.text") || contentType.contains("pdf") , this, FIELD_CV, "invalid");
context.check(contentType.contains("msword") || contentType.contains("opendocument.text")
|| contentType.contains("pdf") || contentType.contains("vnd.openxmlformats-officedocument.wordprocessingml.document") , this, FIELD_CV, "invalid");
}
if(getCoverLetter()!= null)
if(getCoverLetter() != null)
{
String contentType = getCoverLetter().getContentType();
context.check(contentType.contains("msword") || contentType.contains("opendocument.text") || contentType.contains("pdf") , this, FIELD_CoverLetter, "invalid");
context.check(contentType.contains("msword") || contentType.contains("opendocument.text")
|| contentType.contains("pdf") || contentType.contains("vnd.openxmlformats-officedocument.wordprocessingml.document") , this, FIELD_CoverLetter, "invalid");
}
}
catch(RuntimeException ex)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment