fix invalid files not being cleared and hide the clear button when uploading
fix invalid files not being cleared and hide the clear button when uploading

ryneeverett/filebrowser-safe,ryneeverett/filebrowser-safe,ryneeverett/filebrowser-safe,ryneeverett/filebrowser-safe