web/play-java-forms/src/main/java/play/data/DynamicForm.java
public <A> Http.MultipartFormData.FilePart<A> file(String key) {
    try {
      return (Http.MultipartFormData.FilePart<A>) get().getData().get(asNormalKey(key));
    } catch (Exception e) {
      return null;
    }
  }
public <A> Http.MultipartFormData.FilePart<A> file(String key) {
    try {
      return (Http.MultipartFormData.FilePart<A>) get().getData().get(asNormalKey(key));
    } catch (Exception e) {
      return null;
    }
  }
public < A > Http . MultipartFormData . FilePart < A > file ( String key ) { try { return ( Http . MultipartFormData . FilePart < A > ) get ( ) . getData ( ) . get ( asNormalKey ( key ) ) ; } catch ( Exception e ) { return null ; } }
Gets the concrete value only if the submission was a success. If the form is invalid because of
validation errors or you try to access a non-file field this method will return null. If you
want to retrieve the value even when the form is invalid use {@link #value(String)} instead. If
you want to retrieve a non-file field use {@link #get(String)} instead.

@param key the string key.
@return the value, or null if there is no match.
Gets the concrete value only if the submission was a success . If the form is invalid because of validation errors or you try to access a non - file field this method will return null . If you want to retrieve the value even when the form is invalid use { @link #value ( String ) } instead . If you want to retrieve a non - file field use { @link #get ( String ) } instead .