I had a similar problem (image files not uploading in 3.9), and the reason proved to be missing "/tmp" folder in my EZP virtual host subdirectory (there was a /tmp in root folder, but apparently it wasn't accessible for scripts running in virtual host).