Small fix to make it work on an actual device (it does not seem to accept reading files from input type=file)