training_extensions icon indicating copy to clipboard operation
training_extensions copied to clipboard

Cannot upload images with JPG (uppercase) extension

Open piotrgrubicki opened this issue 9 months ago • 3 comments

  1. Prepare a JPG file, e.g. Viewpoint_2_034.JPG (watch the case)
  2. Import it to a project.

The app logs says:

geti-tune-1  | pydantic_core._pydantic_core.ValidationError: 1 validation error for Media
geti-tune-1  | format
geti-tune-1  |   Input should be 'jpg' or 'png' [type=enum, input_value='JPG', input_type=str]

piotrgrubicki avatar Feb 04 '26 15:02 piotrgrubicki

@warrkan The server should normalize the extensions (-> lowercase) before validating and saving the file.

leoll2 avatar Feb 05 '26 10:02 leoll2

I was not able to reproduce the problem, file with upper case file extension is uploaded successfully. Can you please provide more details or extended stack trace?

warrkan avatar Feb 11 '26 12:02 warrkan

@warrkan, the issues seems to be solved. I could reproduce it using the code from Feb 9th, but not using the current code from main.

piotrgrubicki avatar Feb 11 '26 16:02 piotrgrubicki