Detect file and drag and drop support