Skip to content

File upload support in forms #4829

@zackkrida

Description

@zackkrida

Note

As part of this work, any TODO_FILES_IN_FORMS code comments in Mathesar MUST be resolved.

Problem

Mathesar's file functionality (officially released in 0.7.0) does not presently work with the forms feature. We notify users that file columns can not be added to forms:

Image

Proposed solution

We plan to support these columns in forms, making the necessary backend changes for "anonymous" file upload.

On the frontend form builder side, we need to consider the minimum-viable functionality to allow form creators to validate the files. Ideas include:

  • Restrict by filetype (extension or MIME)?
  • Restrict by filesize

Additional context

Metadata

Metadata

Assignees

Labels

readyReady for implementationtype: enhancementwork: backendRelated to Python, Django, and simple SQLwork: frontendRelated to frontend code in the mathesar_ui directory

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions