Your comments

I am facing the same issue. Was you able to resolve the issue?

Is it possible to give www-data group Read and Write permissions by default.