[server] Add 0644 to file mode when upload/update from web.