V2 Upload - passing a filename 'Content-Type' and 'Content-Disposition'

It seems like the ‘filename as part of the file’ with ; filename=desired_file_name.txt

is very difficult from a low-code tool.

Is there a chance we could get a ‘file rename’ api?
I have users who can pass a file using Zapier into my low code app in bubble.io - bubble.io destroys the filename, so then when I upload to vectara, it lands with a terrible filename, and then the ‘list files’ api returns those awful names.
Could the ‘list files’ also return a ‘pretty name’ and then we could send that up as a parameter in the upload that’s not appended to the URL of the data we’re uploading? that append is a problem.

Hi David,

The fileupload api supports setting document metadata as well. You could use that to set any values. Does that solve your issue, or I’m misunderstanding something?

Regards,
Tallat

I passed metadata { “filename”: “name of the file.doc” } but when I call the document list function, the name from the URL persisted.
I need to be able to retrieve a list of files with a filename I set.
I can’t find a way in bubble.io to use the V2 version with url;filename=‘filename.doc’ I tried the V1 with “filename” in the metadata. Is there something magical I need in the metadata like “file-name” “fileName” ? can I get vectara to listen to me to override the filename?

reviewing my data, its the ‘ID’ of the file I want to override: can I set the ID in the v1 or v2 api for uploadnig?

can I set the ID in the v1 or v2 api for uploadnig?

Yes you can. Can you please check the details here how to do that?

I have tried both things and they do not work. Or the instructions are unclear.
Can I get an actual example with something other than ‘file’ and ‘filename’.

  1. Add a header called: content-disposition - can you provide one with some valid values for each field? It seems like bubble will not allow me to add this header.
  2. add the filename after the URL with ;filename=desiredname.pdf
    This results in an error:

I see. Let me discuss internally with the team what we can do here.

Discussed internally. We’ll pick this up in one of our sprints in the coming weeks. It is difficult for me to give you an exact estimate right now as we haven’t decided on the next sprint timeline/work items yet, but it should be soon. Let me update you on this in the coming week.

Thank you tallat, I should be able to work around this in my app by saying: if the file has a ‘filename’ in the metadata, show that, if not, show the ID. Then my old files that were not uploaded via automation will still show their ID value, which is pretty, and my new files will override that with the value of filename, I just have to do some javascript on my side to handle it. The files will still look bad in your gui, but my users do not go there.
Thank you for considering this.

@tallat has this made it anywhere in the last 19 days? just checking in case I missed an update. I know this is likely not a top priority.

Yes, this is in the works. It should make it to production and be live max by Wednesday morning.