Updated so file permissions can be set after a file is uploaded