mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: File upload failed (#2398)
This commit is contained in:
parent
e1f0f39987
commit
fdb2cbd9ab
|
|
@ -57,7 +57,7 @@ mime_types = {"html": "text/html", "htm": "text/html", "shtml": "text/html", "cs
|
|||
|
||||
class FileSerializer(serializers.Serializer):
|
||||
file = UploadedFileField(required=True, error_messages=ErrMessage.image(_('file')))
|
||||
meta = serializers.JSONField(required=False)
|
||||
meta = serializers.JSONField(required=False, allow_null=True)
|
||||
|
||||
def upload(self, with_valid=True):
|
||||
if with_valid:
|
||||
|
|
|
|||
Loading…
Reference in New Issue