Fix potential DoS vulnerability (#11433)
* pass max_file_size to MultiPartParser
* add max_header_size and remove blocking call to os.stat
* add test for max_header_size
* add changeset
* add changeset
* remove unused max_file_size
---------
Co-authored-by: Ruben Lee Landrø Johnsen <rubenlee.johnsen@skatteetaten.no>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>