#832 fix bug on updating files on /files/edit instead of admin