fix: 文件上传不做幂等操作
This commit is contained in:
parent
50553bd0c0
commit
c097b44e0c
|
@ -608,6 +608,7 @@ class FileViewSet(CustomCreateModelMixin, RetrieveModelMixin, ListModelMixin, Cu
|
|||
serializer_class = FileSerializer
|
||||
filterset_fields = ['type']
|
||||
search_fields = ['name']
|
||||
post_idempotent = False
|
||||
|
||||
def perform_create(self, serializer):
|
||||
file_obj = self.request.data.get('file')
|
||||
|
|
Loading…
Reference in New Issue