# Folder 'XYX' does not exist

**URL:** <https://community.dreamfactory.com/t/folder-xyx-does-not-exist/4550>\
**Category:** Connecting to File Storage\
**Created:** [July 26, 2018, 1:37pm UTC](https://community.dreamfactory.com/t/folder-xyx-does-not-exist/4550 "2018-07-26T13:37:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![radodr](https://avatars.discourse-cdn.com/v4/letter/r/e47c2d/32.png) [@radodr](https://community.dreamfactory.com/u/radodr)\
**Post date:** [July 26, 2018, 1:37pm UTC](https://community.dreamfactory.com/t/folder-xyx-does-not-exist/4550/1 "2018-07-26T13:37:37Z")

</div>

Hello,  
I’m using DreamFactory Version: 2.12.0 (from bitnami installer on centos 7). I have Local Storage.  
Problem is when I try to upload binary file (photo) to storage into not-existing directory.  
Older version of DF I think do it right.  
When I separate creation of folder from upload file, than it is works.

There is my call:  
curl -X POST “https://…/api/v2/files/” -H “accept: application/json” -H “X-File-Name: folder/file.x” -H “X-Folder-Name: folder” -H “Content-Type: raw” -H “X-DreamFactory-API-Key: apiXXX” -H “X-DreamFactory-Session-Token: tokenXXX” -d “sss”

and error output:  
{  
“error”: {  
“code”: 404,  
“context”: null,  
“message”: “Folder ‘folder’ does not exist.”,  
“status\_code”: 404  
}  
}

How can I call local service to create directory at first and after that upload file.

Thank’s for advices.  
Rado.
