# Bug SSI-407 - File picker UI lets user upload to root folder even though it's not permitted

Project: Stream Storage Integrations
Status: closed
URL: https://community.openproject.org/work_packages/SSI-407

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Integrations / SharePoint/OneDrive, Modules and project features / File storages |
| Target versions | 16.5.0 |
| Observed in versions | 16.5.0 |
| Bug found in version (deprecated) | 16.5.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Marcello Rocha Pereira |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Login as a user with permissions to upload files
    
2.  Go to a project with Sharepoint storage
    
3.  Go to any WP
    
4.  Go to Files tab
    
5.  Click on `Upload file`
    
6.  Select a file
    
7.  Click on `Choose location`
    

### What is the buggy behaviour?

*   User sees error
    
*   File is not uploaded
    
*   500 in console
    

### What is the expected behaviour?

1.  User can successfully upload file
    
2.  UI does not allow user to do actions that will fail
    

###   

### Screenshots and other files

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/779648/content">

### Environment information

**OpenProject version**

Core build

[6ab2ec27724638cee3a07748af5c85ce5ffb47d7](https://github.com/opf/openproject/commits/6ab2ec27724638cee3a07748af5c85ce5ffb47d7)

Product version

[a0868f474ce642dc2f7bd982ec42d7caaa9d028a](https://github.com/opf/saas-openproject/commits/a0868f474ce642dc2f7bd982ec42d7caaa9d028a)

Core version

OpenProject 16.4.0

**Browser**

*   [ ] Chrome
*   [x] Firefox
*   [ ] Safari
*   [ ] Mobile Safari
*   [ ] Other (please specify)

**Operating System**

*   [x] Windows
*   [ ] Mac OS X
*   [ ] Mobile iOS
*   [ ] Mobile Android
*   [ ] Linux (please specify distro)
*   [ ] Chrome OS
*   [ ] Other (please specify)
