MCPcopy Create free account
hub / github.com/vastsa/FileCodeBox / UploadChunk

Class UploadChunk

apps/base/models.py:43–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42
43class UploadChunk(models.Model):
44 id = fields.IntField(pk=True)
45 upload_id = fields.CharField(max_length=36, index=True)
46 chunk_index = fields.IntField()
47 chunk_hash = fields.CharField(max_length=64)
48 total_chunks = fields.IntField()
49 file_size = fields.BigIntField()
50 chunk_size = fields.IntField()
51 file_name = fields.CharField(max_length=255)
52 save_path = fields.CharField(max_length=512, null=True)
53 created_at = fields.DatetimeField(auto_now_add=True)
54 completed = fields.BooleanField(default=False)
55
56
57class KeyValue(Model):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected