# Image upload via CLI into wrong folder on Windows 10

**URL:** <https://forums.losant.com/t/image-upload-via-cli-into-wrong-folder-on-windows-10/5254>\
**Category:** Bug Report\
**Tags:** losant-cli\
**Created:** [September 6, 2023, 2:18pm UTC](https://forums.losant.com/t/image-upload-via-cli-into-wrong-folder-on-windows-10/5254 "2023-09-06T14:18:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marco\_Bernutz](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@Marco\_Bernutz](https://forums.losant.com/u/Marco_Bernutz)\
**Post date:** [September 6, 2023, 2:18pm UTC](https://forums.losant.com/t/image-upload-via-cli-into-wrong-folder-on-windows-10/5254/1 "2023-09-06T14:18:43Z")

</div>

Using the CLI, uploading a file from local folder “./gateways/dra/images/” leads to creation of a new root folder named by the entire Windows folder path:

![grafik](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/1/176a3021bb2ef2ac95ca0acd7c169868570ec770.png)

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [September 6, 2023, 2:55pm UTC](https://forums.losant.com/t/image-upload-via-cli-into-wrong-folder-on-windows-10/5254/2 "2023-09-06T14:55:24Z")

</div>

Thanks for the report. We see the issue and are working on a fix. I will follow up once it is resolved.

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [September 14, 2023, 2:48pm UTC](https://forums.losant.com/t/image-upload-via-cli-into-wrong-folder-on-windows-10/5254/3 "2023-09-14T14:48:06Z")

</div>

We just published an updated version of the [Losant CLI](https://www.npmjs.com/package/losant-cli) that addresses the Windows path issue. If you upgrade your local copy of it, any files in a child directory should correctly be nested on the Losant side matching what you have on your computer.

Thanks for bringing this to our attention.

---

<div class="post-metadata">

**Author:** ![Marco\_Bernutz](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@Marco\_Bernutz](https://forums.losant.com/u/Marco_Bernutz)\
**Post date:** [September 15, 2023, 1:31pm UTC](https://forums.losant.com/t/image-upload-via-cli-into-wrong-folder-on-windows-10/5254/4 "2023-09-15T13:31:04Z")

</div>

Internal

Hi Dylan,

it works fine.

Many thanks and Best Regards,
