Fix nested WordPress multisite resource path?

I found the solution myself.

This is a problem resulting from using a cloning plugin. Manually going into network site settings and updating upload path not to include “/sites/2/” solved it as WordPress appends the path on its own.

error code: 523