fix adding of pasted text into convex and fix double paste problem
Build and Push Docker Container / build-and-push (push) Successful in 1m40s
Build and Push Docker Container / build-and-push (push) Successful in 1m40s
This commit is contained in:
@@ -136,10 +136,6 @@ async def api_upload(user):
|
||||
elif text.strip():
|
||||
data = text.encode("utf-8")
|
||||
fname = iso_stamp_filename("pasted", "txt")
|
||||
path = current_app.upload_folder / fname
|
||||
|
||||
async with aiofiles.open(path, "wb") as f:
|
||||
await f.write(data)
|
||||
|
||||
storage_id = await current_app.convex.send_to_storage(data=data, content_type="text/plain")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user