HTTP Error WordPress on IIS uploading image

I was finally offered a link to use the browser uploader. I tried that and got a descriptive error message, approximately this: “Php could not get permission to temporary folder UNKNOWN”. Now that’s something I can work with. I went to php.ini and found sys_temp_dir which says it will default to the standard temporary directory. So it was not set in my php.ini. I set it to a specific folder for php that I created g:\phptemp and restarted IIS. Immediately no problems. Had WordPress brought back that error message at 8am this morning I would have saved 4 hours poking and proding and trying and failing. Super frustrating but I’m glad I found the answer and could share it because I NEVER found this answer anywhere else.