Skip to content

UploadFile/Async with filePath sets whole path as filename #308

@Felix2711

Description

@Felix2711

Service

OpenAI

Describe the bug

When using OpenAIFileClient.UploadFile/Async directly with a filepath. The Uploaded File will have the complete Path as a name

Steps to reproduce

  1. Upload file using a path
  2. Check filename of uploaded file

Code snippets

No response

OS

winOS

.NET version

net8.0

Library version

2.0.0

Metadata

Metadata

Assignees

Labels

area: architectureThis item is related to general architecture of the OpenAI client library.bugCategory: Something isn't working and appears to be a defect in the client library.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions