For some reason, v0-sdk (platform) doesn't allow uploading attachments with proper names.
sendMessage() asks only for the url field, which doesn't make sense since it implies that v0 expects you to handle the upload from my side, so I would need first to upload the file to some bucket, and then send the generated URL to V0. But then V0 handles the attachments internally in its own buckets, and now the document has no name at all, so V0 assigns a random ID.
This scenario also implies that I would be uploading files to my own bucket and not even using it, since V0 later tries to handle it on its own and falls back to the CDN generated by Vercel instead of the one I provided. By reading their docs. I couldn't find a way to upload files in an ongoing chat using sendMessage() too.
Am I doing something wrong?