Welcome to Spotify Community!
I've moved your post to "Other" as it's not an ongoing issue.
You can't play local files that are added into a playlist from PS4/PS3, but what you can do is to play the local file from your Desktop into PS4 using Spotify connect.
Hope this helps. 🙂