Skip to content

Commit

Permalink
In upload test, allow filename case to change.
Browse files Browse the repository at this point in the history
  • Loading branch information
ttalvitie authored Feb 13, 2021
1 parent 4cddc2e commit 83cf3d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
var reader = new FileReader();
reader.onloadend = function() {
var name = upload.value.split("/").pop().split("\\").pop();
if(name != "file.bin") return;
if(name.toLowerCase() != "file.bin") return;
data = new Uint8Array(reader.result);
if(data.length != 65536) return;
var sum = 0;
Expand Down

0 comments on commit 83cf3d6

Please sign in to comment.