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
...@@ -52,14 +52,16 @@ public class JobApplication extends BaseJobApplication ...@@ -52,14 +52,16 @@ public class JobApplication extends BaseJobApplication
if(getCV() != null) if(getCV() != null)
{ {
String contentType = getCV().getContentType(); 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(); 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) 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