Commit fe682ae6 authored by Aleksei Lipniagov's avatar Aleksei Lipniagov

Remove :read check to support WH uploads

parent 7db7e032
...@@ -48,7 +48,7 @@ class Import::GitlabProjectsController < Import::BaseController ...@@ -48,7 +48,7 @@ class Import::GitlabProjectsController < Import::BaseController
private private
def file_is_valid? def file_is_valid?
return false unless project_params[:file] && project_params[:file].respond_to?(:read) return false unless project_params[:file]
filename = project_params[:file].original_filename filename = project_params[:file].original_filename
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment