Arguments
The ID of the provider connection. This identifies which integration connection to upload the file to.
The client identifier from your platform. This should match the
id returned from get connection clients.File upload input containing file details.
Returns
Whether the upload was successful.
Success or error message describing the result of the upload operation.
Example
TUS Protocol: Filed uses the TUS (resumable upload) protocol for file uploads. Your platform needs to implement a TUS-compatible endpoint. The
tusdEndpoint should point to your TUS upload endpoint that accepts file uploads for the specified client.After the mutation succeeds, Filed will upload the file to your platform using the TUS endpoint. Ensure your platform’s TUS endpoint is configured to accept uploads for the specified client and connection.
Troubleshooting
Problem: Upload fails with invalid client key Solutions:- Verify the
clientKeymatches a valid client ID from your platform - Ensure the client exists and is accessible through this connection
- Check that the connection credentials have permission to upload files for this client
- Verify the
tusdEndpointURL is correct and accessible - Ensure your platform implements a TUS-compatible upload endpoint
- Test the TUS endpoint manually to ensure it accepts uploads
- Check that the endpoint accepts uploads for the specified client
- Verify your TUS endpoint is properly configured
- Check file size limits and ensure the file doesn’t exceed them
- Ensure the endpoint has proper error handling and returns appropriate TUS responses
- Review TUS protocol implementation to ensure compatibility