We should store the file in a temporary file as opposed to a string as PHP will blow up on big files.