Check files types and size