UPDATE: OK I figured it out, looks like fread has a filesize limitation, changed this to file_get_contents(\'php://input\')
I\'m using a single image upload/crop/resize script for files up to 10MB. When testing, I set php_ini memory limit to 25M and that is exhausted when uploading a file only about 1.4MB.