dev@locazia: add type to content

This commit is contained in:
user 2024-03-04 17:45:16 +03:00
parent d3fe479612
commit 44fcc5128c
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ async def s_api_v1_storage_post(request):
try: try:
file_hash = b58encode(hashlib.sha256(file_content).digest()).decode() file_hash = b58encode(hashlib.sha256(file_content).digest()).decode()
new_content = StoredContent( new_content = StoredContent(
type="local/content_bin",
hash=file_hash, hash=file_hash,
filename=file_name, filename=file_name,
user_id=None, user_id=None,