The serial send currently runs in the same thread as the server, which causes the page to hang while a file is being sent.