Class FilesUploadV2Request.FilesUploadV2RequestBuilder
java.lang.Object
com.slack.api.methods.request.files.FilesUploadV2Request.FilesUploadV2RequestBuilder
- Enclosing class:
- FilesUploadV2Request
-
Method Summary
Modifier and TypeMethodDescriptionDescription of image for screen-reader.build()Channel ID where the file will be shared.Comma-separated string of channel IDs where the file will be shared.File contents via a POST variable.File contents via `multipart/form-data`.fileData(byte[] fileData) File contents via `multipart/form-data`.Name of the file being uploaded.initialComment(String initialComment) The message text introducing the file in specified channel.requestFileInfo(boolean requestFileInfo) Deprecated.snippetType(String snippetType) Syntax type of the snippet being uploaded.Provide another message's ts value to upload this file as a reply.Title of the file, which is visible in the Slack UI.Authentication token.toString()uploadFiles(List<FilesUploadV2Request.UploadFile> uploadFiles) Multiple files to upload
-
Method Details
-
token
Authentication token. Requires scope: `files:write`- Returns:
this.
-
file
File contents via `multipart/form-data`. If omitting this parameter, you must submit `content`. (this is mainly for backward compatibility - using uploadFiles instead is recommended)- Returns:
this.
-
fileData
File contents via `multipart/form-data`. If omitting this parameter, you must submit `content`. (this is mainly for backward compatibility - using uploadFiles instead is recommended)- Returns:
this.
-
content
File contents via a POST variable. If omitting this parameter, you must provide a `file`. (this is mainly for backward compatibility - using uploadFiles instead is recommended)- Returns:
this.
-
filename
Name of the file being uploaded. (this is mainly for backward compatibility - using uploadFiles instead is recommended)- Returns:
this.
-
title
Title of the file, which is visible in the Slack UI. (this is mainly for backward compatibility - using uploadFiles instead is recommended)- Returns:
this.
-
altTxt
Description of image for screen-reader. (this is mainly for backward compatibility - using uploadFiles instead is recommended)- Returns:
this.
-
snippetType
Syntax type of the snippet being uploaded. (this is mainly for backward compatibility - using uploadFiles instead is recommended)- Returns:
this.
-
requestFileInfo
@Deprecated public FilesUploadV2Request.FilesUploadV2RequestBuilder requestFileInfo(boolean requestFileInfo) Deprecated.Fetches all the file metadata for better v1 compatibility when this property is true. Note that, starting in v1.34, this flag does not do anything. The full file metadata is now returned without additional files.info API calls.- Returns:
this.
-
uploadFiles
public FilesUploadV2Request.FilesUploadV2RequestBuilder uploadFiles(List<FilesUploadV2Request.UploadFile> uploadFiles) Multiple files to upload- Returns:
this.
-
initialComment
The message text introducing the file in specified channel.- Returns:
this.
-
channel
Channel ID where the file will be shared. If not specified the file will be private.- Returns:
this.
-
channels
Comma-separated string of channel IDs where the file will be shared.- Returns:
this.
-
threadTs
Provide another message's ts value to upload this file as a reply. Never use a reply's ts value; use its parent instead.- Returns:
this.
-
build
-
toString
-