urlo upload as js function

This commit is contained in:
Ville Rantanen
2018-03-15 16:04:24 +02:00
parent 86c855285c
commit 167c58d127
5 changed files with 92 additions and 38 deletions

View File

@@ -184,7 +184,9 @@ def upload_url():
)
if os.path.exists(filename):
file_versionize(filename)
download_url(url, filename)
ok,error = download_url(url, filename)
if not ok:
return error
set_rights(filename)
notify({
"recipient": get_or_none('recipient', share),