Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

only show actual IFC files

Markus Kahl0199dcdf5d91
diff --git a/modules/bim/app/views/bim/ifc_models/ifc_models/_form.html.erb b/modules/bim/app/views/bim/ifc_models/ifc_models/_form.html.erb
index 674d99685f3..d976dacfb61 100644
--- a/modules/bim/app/views/bim/ifc_models/ifc_models/_form.html.erb
+++ b/modules/bim/app/views/bim/ifc_models/ifc_models/_form.html.erb
@@ -44,9 +44,9 @@ See doc/COPYRIGHT.rdoc for more details.
<div class="form--field <%= @ifc_model.new_record? ? '-required': '' %>">
<% if OpenProject::Configuration.direct_uploads? %>
- <input class="form--file-field" type="file" name="file" />
+ <input class="form--file-field" type="file" name="file" accept=".ifc" />
<% else %>
- <%= f.file_field :ifc_attachment %>
+ <%= f.file_field :ifc_attachment, accept: '.ifc' %>
<% end %>
</div>