Skip to content

upload

Syntax:

shell
sfiler [options] upload [Command options] <filename>
Command OptionsRequired/OptionalDescription
-dRequiredUpload destination. This is the path where we should upload the file. (ex: /Inbox/folder1)
-tcOptionalTime to live count. Set to determine how many times the file can be download. Default: 0
-tdOptionalSet an absolute expiration date. After this date, the file cannot be downloaded, it will be deleted. (ex: 2011-12-31)
-thOptionalSet a relative expiration date. The file will expire in X hours from now. (ex: 2)
-xOptionalMessage to send to recipients
-tDeprecatedOverride the notification theme to use.

Note

If path not included in filename, Current path will be assumed.

Warning

The -t parameter used to identify the theme is always present as an option in the command. However, this option is ignored. The theme applied will be that associated with the group(s) of the user to whom the file is sent. Be sure to remove this parameter from your scripts, as it will be removed from the command in a future version of the solution.

Examples:

To upload to one's personal inbox

shell
sfiler -l "my-user" -p "my-password" -s https://www.sfiler.com/sfiler/server/ upload -d "/Inbox" "my-file.txt"
shell
sfiler.exe -l "my-user" -p "my-password" -s https://www.sfiler.com/sfiler/server/ upload -d "/Inbox" "my-file.txt"

To upload to all members of a community

shell
sfiler -l "my-user" -p "my-password" -s https://www.sfiler.com/sfiler/server/ upload -d "/MyCommunity" "my-file.txt"
shell
sfiler.exe -l "my-user" -p "my-password" -s https://www.sfiler.com/sfiler/server/ upload -d "/MyCommunity" "my-file.txt"