# How do we locate our attachment\_fu photos in Windows XP?

**URL:** <https://www.ruby-forum.com/t/how-do-we-locate-our-attachment-fu-photos-in-windows-xp/124654>\
**Category:** Rails\
**Created:** [December 31, 2007, 5:21pm UTC](https://www.ruby-forum.com/t/how-do-we-locate-our-attachment-fu-photos-in-windows-xp/124654 "2007-12-31T17:21:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 31, 2007, 5:21pm UTC](https://www.ruby-forum.com/t/how-do-we-locate-our-attachment-fu-photos-in-windows-xp/124654/1 "2007-12-31T17:21:28Z")

</div>

Simply put: I don’t understand the reasoning behind where photos are  
stored in the :file\_system option of attachment\_fu?

has\_attachment :content\_type =\> :image,  
:storage =\> :file\_system,  
:max\_size =\> 2.megabytes,  
:resize\_to =\> ‘320x200\>’,  
:thumbnails =\> { :thumb =\> ‘100x100’ },  
:processor =\> ‘rmagick’

validates\_as\_attachment

def full\_filename(thumbnail = nil)  
file\_system\_path = (thumbnail ? thumbnail\_class :  
self).attachment\_options[:path\_prefix].to\_s  
File.join(RAILS\_ROOT, file\_system\_path,  
thumbnail\_name\_for(thumbnail))  
end

For some ‘magical’ reason this worked fine with my Rails 1.2.6 source  
code and now it objects. I am certain that the problem resides in  
WHERE Windows XP tries to save the photo. I know this because I  
changed the :storage value to S3 and the code went through (although  
using Windows XP the image is not viewable using this plugin do to  
some type of operating system anomoly?).  
Anyway, how do you guys declare your "full\_filename(thumbnail) path?

The error message I get with Windows XP is:  
{“media\_id”=\>“6”,  
“commit”=\>“Save Photo”,  
“mediaphoto”=\>{“title”=\>“Test photo”,  
“uploaded\_data”=\>#\<File:C:/DOCUME~1/DAVIDK~1/LOCALS~1/Temp/  
CGI4076-5\>,  
“geo\_long”=\>“0.0”,  
“show\_geo”=\>“1”,  
“geo\_lat”=\>“0.0”}}  
I seem to recall months ago that there was a problem as Windows mixes  
forward slashes with backward slashes??? I want the uploaded data to  
put itself in the \mediaphoto"goes here" folder.  
Thank you,  
Kathleen  
removed\_email\_address@domain.invalid
