django-baker icon indicating copy to clipboard operation
django-baker copied to clipboard

The automatically created forms don't understand how to handle file uploads.

Open opencoca opened this issue 5 years ago • 0 comments

Forms should use enctype="multipart/form-data" if files are in the model.

Alternatively, forms could always use enctype="multipart/form-data" and developers could comment it out if they needed increased efficiency.

Example of form with working file uploads: <form enctype="multipart/form-data" method="post" action="/foo/">

opencoca avatar Dec 08 '20 16:12 opencoca