@param file  a file to be attached
@param name  the name of a file
@param container  the resource to which the file to be attached
@return {@code true} if the file is attached, if not {@code false}.