You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Battleground only allows for images to be added to a chat or a prompt. It would be great to support more file types.
The Bedrock UI allows the following:
csv, html, doc(x), pdf, md, txt, xls(x)
I think that all this requires is for useFilePicker to allow these types
const{ openFilePicker }=useFilePicker({multiple: false,accept: ["image/*",".pdf",".txt"],// And more could be added.readAs: "DataURL",onFilesSuccessfullySelected: ({ filesContent })=>{if(!filesContent||filesContent.length===0)return;constimageData={name: filesContent[0].name,dataUrl: filesContent[0].content};addAttachmentToPrompt(imageData);},});
The text was updated successfully, but these errors were encountered:
Currently Battleground only allows for images to be added to a chat or a prompt. It would be great to support more file types.
The Bedrock UI allows the following:
csv, html, doc(x), pdf, md, txt, xls(x)
I think that all this requires is for
useFilePicker
to allow these typesThe text was updated successfully, but these errors were encountered: