File Attachments
Handle file uploads and attachments in conversations
Overview
Gconv Prune supports file attachments in conversations, allowing users to share and process various file types including documents, images, and code files.
Supported File Types
Documents
- PDF (.pdf)
- Word (.docx, .doc)
- Text (.txt)
- Markdown (.md)
Images
- PNG (.png)
- JPEG (.jpg, .jpeg)
- GIF (.gif)
- WebP (.webp)
Code
- JavaScript (.js)
- TypeScript (.ts)
- Python (.py)
- And more...
Upload Methods
Drag and Drop
Simply drag files into the chat interface to upload them. The interface will highlight when files are dragged over it.
Example Usage:
// Handle drag and drop
const handleDrop = (e) => {
e.preventDefault();
const files = Array.from(e.dataTransfer.files);
uploadFiles(files);
};
File Picker
Click the attachment button to open the file picker dialog. Select one or multiple files to upload.
Example Usage:
// Handle file selection
const handleFileSelect = (e) => {
const files = Array.from(e.target.files);
uploadFiles(files);
};
File Processing
Processing Features
Text Extraction
- OCR for images
- PDF text extraction
- Document parsing
- Code analysis
File Analysis
- Content summarization
- Language detection
- Code review
- Security scanning
Best Practices
File Size Limits
Keep files under 10MB for optimal performance. Larger files may require compression.
Security Considerations
Always scan files for malware and validate file types before processing.
Need Help?
For more information about file handling, check our API reference or contact our support team.