Better handling for large files and chrome