Slack download data

broken image

If there's more than one channel name or ID in the channels string, they should be comma-separated. The file can also be shared directly into channels on upload, by specifying an optional argument channels. Possible filetype values can be found in the file object definition.įiles uploaded via multipart/form-data will be stored either in hosted or editable mode, based on certain heuristics (determined Sending a valid filetype parameter will override this behavior. In both cases, the type of data in the file will be intuited from the filename and the magic bytes in the file, for supported formats.

broken image

The latter should be used for creating a 'file' from a long message/paste and forces 'editable' mode.

broken image

The content of the file can either be posted using an enctype of multipart/form-data (with the file parameter named file), in the usual way that files are uploaded via the browser, or the content of the file can be sent as a POST var called content.

broken image

You must provide either a file or content parameter. This method allows you to create or upload an existing file.

broken image