Skip to content

Commit

Permalink
Merge branch 'main' into all-contributors/add-Ada-lave
Browse files Browse the repository at this point in the history
  • Loading branch information
provinzkraut authored Feb 16, 2025
2 parents c39c8c6 + 356cf0a commit 0394670
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 898 deletions.
6 changes: 2 additions & 4 deletions docs/examples/request_data/request_data_8.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any, Dict

from pydantic import BaseConfig, BaseModel
from pydantic import BaseModel, ConfigDict
from typing_extensions import Annotated

from litestar import Litestar, post
Expand All @@ -10,12 +10,10 @@


class FormData(BaseModel):
model_config = ConfigDict(arbitrary_types_allowed=True)
cv: UploadFile
diploma: UploadFile

class Config(BaseConfig):
arbitrary_types_allowed = True


@post(path="/")
async def handle_file_upload(
Expand Down
Loading

0 comments on commit 0394670

Please sign in to comment.