Added max_file_size and accept options to allow for filtering files to be uploaded or read by their size and/or their mime-type.