Skip to content

Conversation

@aanand-1706
Copy link

No description provided.

@github-actions
Copy link

github-actions bot commented Nov 14, 2025

2 Warnings
⚠️ Pull request is too big (more than 500 LoC).
⚠️ Schema changes detected without a corresponding DB migration.

Generated by 🚫 Danger


# Validate that the hyperlink is not blank
if submit_link.blank?
return render_error('Hyperlink submission cannot be blank. Please provide a valid URL.', :bad_request)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use validates_url gem to validate the submitted hyperlink

end

# Validate file extension against allowed types
unless valid_file_extension?(uploaded_file_name(uploaded))
Copy link
Collaborator

@vihar2712 vihar2712 Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to remove this check

@@ -0,0 +1,38 @@
module FileHelper
extend self
# Replace invalid characters with underscore
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"replace whitespace characters" would make much more sense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants