Skip to content
Snippets Groups Projects
Commit eacec4c8 authored by Anusha Ranganathan's avatar Anusha Ranganathan Committed by Nils Küster
Browse files

Removed restriction of hidden files upload

parent f5da0dd7
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ module Hyrax
file_name = file.file.original_filename
if parsed_file['restricted_file_names'].include?(file_name.gsub(/[\s_\-]/, '').downcase) || file_name.start_with?('.')
if parsed_file['restricted_file_names'].include?(file_name.gsub(/[\s_\-]/, '').downcase)
errors.add(:base, "This file name is restricted.")
end
end
......
......@@ -2,4 +2,5 @@ restricted_file_names:
- metadata.json
- meta.json
- .DS_Store
- desktop.ini
\ No newline at end of file
- desktop.ini
- .gitignore
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment