Skip to content

On Quick Start docs page FileUpload(uploads= should be FileUpload(uploads_dir= #187

Description

@hobson

In the Quick Start docs page under the Model section, the example code incorrectly passes a name kwarg uploads:

upload = FileUpload(uploads=os.path.join(BASE_DIR, "static", "uploads"))

The correct argument name is uploads_dir. So the line should be:

upload = FileUpload(uploads_dir=os.path.join(BASE_DIR, "static", "uploads"))

OR

upload = FileUpload(os.path.join(BASE_DIR, "static", "uploads"))

Are source code files for the docs at fastapi-admin-docs.long2ice.io available somewhere so I could issue a direct pull request to the erroneous docs line?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions