limiting file types to text and csv in the frontend for physical file
upload