mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
add log
This commit is contained in:
1 parent
5ae479644e
commit
b46ced2b6f
1 file changed
+2
@@ -35,6 +35,8 @@ module Api
|
||||
|
||||
render json: attachment.as_json(only: %i[uuid created_at], methods: %i[url filename content_type])
|
||||
rescue Submitters::MaliciousFileExtension => e
|
||||
Rollbar.error(e) if defined?(Rollbar)
|
||||
|
||||
render json: { error: e.message }, status: :unprocessable_entity
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user