dev@locazia: add type to content
This commit is contained in:
parent
d3fe479612
commit
44fcc5128c
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue