Skip to main content

File Upload

Upload files to a parent folder using multipart form data.
POST /drives/items/{parentId}/children

Parameters

parentId
string
required
Parent folder ID where the file will be uploaded

Body (multipart/form-data)

file
file
required
File to upload
name
string
required
File name

Example

curl -X POST 'https://app.memorylake.ai/api/memorylake/api/v1/drives/items/parent_123/children' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -F 'file=@/path/to/file.pdf' \
  -F 'name=file.pdf'

Response

Returns the created file item with metadata.
The API automatically handles large files. Simply upload your file and the backend will process it appropriately.

Best Practices

  • Use appropriate error handling for network issues
  • Implement retry logic for failed uploads
  • Check file size limits based on your plan
  • Validate file types before uploading

Next Steps