Did you check your upload user?
If you are conected with "root" user your filésfiles will be with user and group permissions from root"root".
When you acess files in www you can have this problem because your enviroment uses user from host or nobody user.
I holpe this helps.