article logo upload error in SPIP 4.0.0

I had this problem on one site and it appeared that during the upgrade the owner on the files and directories inside IMG, local and tmp has changed. I still don’t know why.