Skip to content
Snippets Groups Projects

Include the full path to an upload in the api response

All threads resolved!
Files
6
@@ -130,7+130,7 @@
}
end
def to_h
{
alt: markdown_name,
url: secure_url,
@@ -176,7+176,7 @@
record_upload # after_store is not triggered
end
def secure_url
File.join('/uploads', @secret, filename)
end
private
def apply_context!(uploader_context)
@@ -201,8 +205,4 @@ def identifier
def dynamic_segment
secret
end
def secure_url
File.join('/uploads', @secret, filename)
end
end
Loading