Multi-File Support
Upload up to 10 files per post with any format
Large File Capacity
Support for files up to 1GB each for document sharing
Overview
File posts allow users to share documents, PDFs, spreadsheets, and other file formats in their social feeds. The social.plus SDK supports up to 10 files per post with a maximum size of 1 GB per file.Requirement | Limit | Notes |
---|---|---|
File Count | Maximum 10 files | Per single post |
File Size | Up to 1GB per file | Platform may have lower limits |
File Formats | All supported types | PDF, DOC, XLS, ZIP, etc. |
Upload files first using the File Handling Guide, then create posts with those file references.
1
Upload Files
Use the File Repository to upload your documents and get file IDs
2
Create Post
Use the file IDs in your post creation request with descriptions
3
Handle Response
The post will contain parent and child posts for each file
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
text | String | Yes | Post content (max 20,000 characters) |
files | Array/IDs | Yes | File objects (iOS/Android/Flutter) or file IDs (TS/JS) |
targetType | Enum | Yes | Target destination (community or user feed) |
tags | Array | No | Searchable tags (not available in Flutter) |
metadata | Object | No | Custom fields for extended functionality |
Troubleshooting
File Upload Failures
File Upload Failures
Problem: Files fail to upload or post creation failsSolutions:
- Check file size (must be under 1GB per file)
- Verify file is not corrupted or empty
- Ensure stable internet connection for large files
- Try uploading files individually if batch upload fails
File Access Issues
File Access Issues
Problem: Users cannot access or download filesSolutions:
- Check if file is still available on the server
- Ensure user has necessary access rights
- Validate file integrity after upload
Large File Performance
Large File Performance
Problem: Large files cause slow loading or timeoutsSolutions:
- Show progress indicators during upload/download
- Use background upload when possible
- Compress files before upload when appropriate
Common Use Cases
Document Sharing
Share PDFs, Word documents, and presentations with teams
Resource Distribution
Distribute templates, guides, and reference materials
Code Sharing
Share code samples, configuration files, and scripts
Archive Distribution
Share compressed archives with multiple related files