Test for ShareX stuff
This commit is contained in:
parent
d61eb2c257
commit
f9f7d16fad
3
run.py
3
run.py
|
@ -86,9 +86,10 @@ def upload_file():
|
|||
data["url"] = config["DOMAIN"] + "/" + filename
|
||||
print_log('Main', 'New file processed "' + filename + '"')
|
||||
|
||||
try:
|
||||
if request.form["source"] == "web":
|
||||
return redirect(url_for('get_file', filename=filename), code=302)
|
||||
else:
|
||||
except Exception:
|
||||
return json.dumps(data)
|
||||
|
||||
# Return Web UI if we have a GET request
|
||||
|
|
Loading…
Reference in New Issue