If you want to upload large files and your MAMP setup is not working and giving you an error message (in my case, the $_FILES variables were not being even set), check some parameters in your PHP.INI file.
In MAMP PRO, go to File -> Edit Template -> PHP53.ini
Make sure file_uploads is ON and check the upload_max_filesize.
; Whether to allow HTTP file uploads. file_uploads = On ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). upload_tmp_dir = /Applications/MAMP/tmp/php ; Maximum allowed size for uploaded files. upload_max_filesize = 100M
You may also need to modify the execution time parameters:
max_execution_time = 60 ; Maximum execution time of each script, in seconds max_input_time = 180 ; Maximum amount of time each script may spend parsing request data memory_limit = 100M ; Maximum amount of memory a script may consume (8MB)
I think my settings above are overkill, but hey… it’s just on my test web server.
After I did these changes, my large file uploads worked fine in MAMP PRO.
Oh, and just for good measure… also check your form MAX_FILE_SIZE parameter.
<input type="hidden" name="MAX_FILE_SIZE" value="105000000" />