Reload page on media upload

This commit is contained in:
2023-06-12 09:33:46 +10:00
parent f77fbd813c
commit 88a7c01822

View File

@@ -17,6 +17,7 @@ module Adamantium
if upload_result.success?
res.status = 201
res.headers["Location"] = upload_result.value!
res.headers["HX-Refresh"] = true
res.body = {
url: upload_result.value!
}.to_json