training_extensions
training_extensions copied to clipboard
Cannot upload images with JPG (uppercase) extension
- Prepare a JPG file, e.g. Viewpoint_2_034.JPG (watch the case)
- 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]
@warrkan The server should normalize the extensions (-> lowercase) before validating and saving the file.
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, the issues seems to be solved. I could reproduce it using the code from Feb 9th, but not using the current code from main.