dev@locazia: add type to content
This commit is contained in:
1 parent
d3fe479612
commit
44fcc5128c
1 file changed
+1
@@ -36,6 +36,7 @@ async def s_api_v1_storage_post(request):
|
||||
try:
|
||||
file_hash = b58encode(hashlib.sha256(file_content).digest()).decode()
|
||||
new_content = StoredContent(
|
||||
type="local/content_bin",
|
||||
hash=file_hash,
|
||||
filename=file_name,
|
||||
user_id=None,
|
||||
|
||||
Reference in new issue
Block a user