# How to copy image file in local and save it to same path?

**URL:** <https://www.ruby-forum.com/t/how-to-copy-image-file-in-local-and-save-it-to-same-path/106226>\
**Category:** Rails\
**Created:** [June 7, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/how-to-copy-image-file-in-local-and-save-it-to-same-path/106226 "2007-06-07T18:18:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![netskie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ad7895/32.png) [@netskie](https://www.ruby-forum.com/u/netskie)\
**Post date:** [June 7, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/how-to-copy-image-file-in-local-and-save-it-to-same-path/106226/1 "2007-06-07T18:18:25Z")

</div>

How to copy image file in local and save it to same path with different  
filename…?

Hello…

Please help me to solve this…I find this hard coz…i dont know how to  
use FileUtils…

thanx…
