Can't upload a file to directory named uploads
through web interface
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
Can't upload a file to directory called uploads
through web interface
Steps to reproduce
Create a folder named uploads
in your project, go into it on the web, then try to upload a file through web interface: it fails.
NB: succeeds when using web IDE
Example Project
https://gitlab.com/ldidry/uploads-dir-bug/tree/master/uploads
What is the current bug behavior?
The file is not uploaded and you got this error: Error uploading file: ""
What is the expected correct behavior?
Successful file uploading
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com and on https://framagit.org
Results of GitLab environment info
Here's the infos for https://framagit.org:
Expand for output related to GitLab environment info
System information System: Debian 9.5 Current User: git Using RVM: no Ruby Version: 2.4.4p296 Gem Version: 2.7.6 Bundler Version:1.16.2 Rake Version: 12.3.1 Redis Version: 3.2.11 Git Version: 2.18.0 Sidekiq Version:5.1.3 Go Version: unknownGitLab information Version: 11.2.3 Revision: 06cbee3 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: https://framagit.org HTTP Clone URL: https://framagit.org/some-group/some-project.git SSH Clone URL: git@framagit.org:some-group/some-project.git Using LDAP: yes Using Omniauth: yes Omniauth Providers: github, gitlab, bitbucket
GitLab Shell Version: 8.1.1 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git