how can I read the text data in the uploaded file in node js regardless of it's filename extention? I created a simple app where user can upload their code snippets or the file itself. Since I don't know all the file extensions (ex. .php, .js, .rb, .py, etc...), I just want to read the file, then throw error if it uploaded binary.
via user3569641
No comments:
Post a Comment