My three algo's pass check50 and tests when running directly, but when uploading files / choosing the algorithm, I either get: 1) 400: The browser (or proxy) sent a request that this server could not understand. or 2) 400: Bad algorithm
I believe its down to how I'm labeling my html form inputs but unsure exactly where. Any help appreciated!
<div class="container">
<form action="/compare" enctype="multipart/form-data" method="post">
<!-- first file in form -->
<label for="file1">Choose first file to upload</label>
<input type="file" id="file1" name="file1">
<!-- second file in form -->
<label for="file1">Choose second file to upload</label>
<input type="file" id="file2" name="file2">
<!-- algo select -->
<label for="algorithm">Algorithm</label>
<select id="algorithm" name="algorithm">
<option value="line">Line</option>
<option value="sentence">Sentence</option>
<option value="substring">Substring</option>
<input type="text" id="length" name="length" placeholder="Length of substring">
</select>
<!-- Div for submit button -->
<div>
<button>Submit</button>
</div>
</form>
</div>