Skip to main content
Use file handling when your app needs to upload a generic attachment such as a PDF, document, archive, or audio-adjacent custom file. The SDK returns a file object with a fileId, URL, attributes, and access type. Pass that uploaded file or its fileId into post, comment, or message creation APIs when you want to attach it to user content. This page covers generic files. Use the image and video pages for media-specific helpers such as image sizes, alt text, video status, and video resolution URLs.

Platform Surface

Parameters

Upload A File

Upload a local file first, then use the returned fileId or file object in content creation APIs.

Read File Data

Read file data when your app needs a direct file URL, filename, or MIME type for a previously uploaded file.

Delete A File

Delete only files your app no longer needs. If a file is still referenced by a post, comment, message, user profile, community, or channel, update that content first so users do not see broken attachments.

Image Handling

Upload images, read image metadata, and request sized image URLs.

Video Handling

Upload videos and read transcoding status or resolution URLs.

File Posts

Attach uploaded files to social posts.