# server_filesharing.exe: File Sharing

The `server_filesharing` utility is used for configuring file sharing functionality in Plesk. File sharing allows the administrator and Plesk users to share files with each other or anyone on the Internet. Note that file sharing is unavailable on customer subscriptions.

## Usage

    server_filesharing.exe <command>
    <option 1> <param> [<option 2> <param>] ... [<option N> <param>]

## Example

The following command allows users to publish files on the Web and specifies the `pubfiles` subfolder for storing their public files:

    plesk bin server_filesharing.exe --update -fsPublicFolderEnabled true -fsPublicFolder pubfiles

## Commands

Command | Parameter | Description | Example
--- | --- | --- | ---
`--update` or `-u` |  | Updates file sharing settings. | To set the root folder (`shfiles`) for storing all subfolders with shared files:
    plesk bin server_filesharing.exe --update -fsPrefix shfiles
`--info or -i` |  | Displays current file sharing settings. | To view current file sharing settings:
    plesk bin server_filesharing.exe --info
`--help` or `-h` |  | Displays help on the use of the utility. | To view a help page for the utility:
    plesk bin server_filesharing.exe --help

## Options

Option | Parameter | Description | Example
--- | --- | --- | ---
`-fsDomain` | `<string>` | Specifies the domain for storing all shared files. | To set the domain (`test.tst`) for file sharing:
    plesk bin server_filesharing.exe --update -fsDomain test.tst
`-fsPrefix` | `<string>` | Specifies the root folder. Web Folders with personal, shared and public files will be created inside this folder. | To set the root folder (`shfiles`) for storing all subfolders with shared files:
    plesk bin server_filesharing.exe --update -fsPrefix shfiles
`-fsLinksAsHttps` | `true|false` | Enables secure links to files and folders. If `true`, all links will be accessible through HTTPS. | To enable HTTPS links to shared files and folders:
    plesk bin server_filesharing.exe --update -fsLinksAsHttps true
`-fsPublicFolderEnabled` | `true|false` | Allows users to publish files on the Web for public access to them. | To allow users publishing their files on the Web:
    plesk bin server_filesharing.exe --update -fsPublicFolderEnabled true
`-fsPublicFolder` | `<string>` | Specifies the folder for storing public files. Only authorized Plesk users can access this folder and edit the files there. | To set the public files folder (`pubfiles`) for storing users’ shared files:
    plesk bin server_filesharing.exe --update -fsPublicFolder pubfiles
`-fsPublicUrl` | `<string>` | Specifies the URL that website visitors should use for read-only access to public files. This URL should be the name of your subscription. | To set the URL (`test.tst`) for access from the Web to shared files:
    plesk bin server_filesharing.exe --update -fsPublicUrl test.tst
`-fsPartnerFolderEnabled` | `true|false` | If `true`, Plesk creates password protected folder where users can put their files. | To allow users put their files in the password protected folder:
    plesk bin server_filesharing.exe --update -fsPartnerFolderEnabled true
`-fsPartnerFolder` | `<string>` | Specifies the name for the password protected folder. | To set the password protected folder (`protected`):
    plesk bin server_filesharing.exe --update -fsPartnerFolder protected
`-fsPartnersLogin` | `<string>` | Specifies the username for access to the password protected folder. | To set the username (`user1`) for access to password protected folder :
    plesk bin server_filesharing.exe --update -fsPartnersLogin user1
`-fsPartnersPassword` | `<string>` | Specifies the password for access to the password protected folder.. | To set the password (`passwd`) for access to password protected folder :
    plesk bin server_filesharing.exe --update -fsPartnersPassword passwd