update upload file mode