[Feature Request] File Input to Chatinput: Enabling File Uploads with Configurable Types and Expiry Options
Reasons for Suggestion
Enabling file input in the Chatinput component would expand its functionality by allowing users to upload files directly. By providing options to set the file type as base64 or direct upload and to specify an expiry time for file deletion, this feature would enhance the versatility and security of the component.
Content of the Proposal
Introduce file upload capabilities to the Chatinput component with configurable settings for the file type and expiry. Users should be able to choose whether the file is uploaded as a base64 encoded string or as a direct upload. Additionally, options for setting file expiry after a certain period or at a specific time should be included, with these settings communicated to the API as a file field.
Technical Considerations
- Update the Chatinput component to handle file uploads, including UI changes for selecting file type and setting expiry.
- Backend modifications to manage file storage, handling both base64 encoding and direct uploads.
- Implement secure file deletion mechanisms based on the specified expiry time.
Potential Use Cases
- Document Handling in Customer Support: Allow customers to upload documents during a chat session, improving resolution times and documentation.
- Secure Data Transmission: Use in environments where secure transmission and temporary storage of files are critical.