What's the difference between the "public_html" and "www" folders?

Always upload your files to the "public_html".
The "www" folder you see is not a real folder it's more like a link to the "public_html" folder.

When you access the "www" folder through your FTP software you're actually being re-directed into the "public_html" folder on your website.