I want to upload a yaml file to a server. But before uploading to the server I need to check whether file content is correct format of yaml syntax and datas inside the yaml. Is there any way to that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you intend to do this in a browser with pure javascript then, no, there is no way. For security reasons you don’t have access to files on the client computer. This validation could be done on the server.