[500] The uploaded file exceeds the upload_max_filesize directive in php.ini. (error code: rest_upload_unknown_error)

Hi guys, if you are getting upload_max_filesize error while creating wordpress media creating via dall-e, the problem is NOT php.ini file (mostly…). dall-e generates image around 1-2mb, and wordpress has upload limit 32mb default.

The problem is “file name”. if you are mapping file name, probably it is long, and thats the problem.
Try shorter file name or use “[random].png” , that could solve your problem.

BR