Skip to content

Commit

Permalink
[extension] Explicit file names (#8927)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdraier authored and overmode committed Nov 27, 2024
1 parent 69235ad commit a310098
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions extension/app/src/hooks/useFileUploaderService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ export function useFileUploaderService(conversationId?: string) {

const title = findAvailableTitle(
includeSelectionOnly
? `${tabContent.title} (selection)`
: `${tabContent.title}`,
? `[selection] ${tabContent.title}`
: `[text] ${tabContent.title}`,
"txt",
existingTitles
);
Expand Down Expand Up @@ -389,7 +389,11 @@ export function useFileUploaderService(conversationId?: string) {
(blob) =>
new File(
[blob],
findAvailableTitle(`${tabContent.title}`, "jpg", existingTitles),
findAvailableTitle(
`[screenshot] ${tabContent.title}`,
"jpg",
existingTitles
),
{
type: blob.type,
}
Expand Down

0 comments on commit a310098

Please sign in to comment.