# Store generated file inside created path

**URL:** <https://forum.elixirforum.com/t/store-generated-file-inside-created-path/48249>\
**Category:** Questions\
**Tags:** path, file\
**Created:** [June 7, 2022, 10:40am UTC](https://forum.elixirforum.com/t/store-generated-file-inside-created-path/48249 "2022-06-07T10:40:19Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Hasimbola](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/hasimbola/32/26622_2.png) [@Hasimbola](https://forum.elixirforum.com/u/Hasimbola)\
**Post date:** [June 7, 2022, 10:44am UTC](https://forum.elixirforum.com/t/store-generated-file-inside-created-path/48249/3 "2022-06-07T10:44:56Z")

</div>

The program doesn’t found the path  
I want to change

> File.write(“/tmp/#{photo}”, photo, [:binary])

to something like this :

> File.write(“/priv/uploads/#{photo}”, photo, [:binary])

but the path is not found , this return :

> [{:error, :enoent}]

---

_[View the full topic](https://forum.elixirforum.com/t/store-generated-file-inside-created-path/48249)._
