Fixing “unable to create directory uploads” error

I tried to add a featured image to the previous post i created but it gave me the following error:

The same error occurred when i tried to add a new media item to the same post.