MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / post

Method post

apps/oss/views/file.py:47–52  ·  view source on GitHub ↗
(self, request: Request)

Source from the content-addressed store, hash-verified

45 )
46 @log(menu='file', operate='Upload file')
47 def post(self, request: Request):
48 return result.success(FileSerializer(data={
49 'file': request.FILES.get('file'),
50 'source_id': request.data.get('source_id'),
51 'source_type': request.data.get('source_type'),
52 }).upload())
53
54 class Operate(APIView):
55 authentication_classes = [TokenAuth]

Callers

nothing calls this directly

Calls 4

FileSerializerClass · 0.90
successMethod · 0.45
uploadMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected