How do we decide location of our photos in attachment _fu for Windows XP?

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’


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,

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
and what is the significance of this?

The error message I get with Windows XP is:
“commit”=>“Save Photo”,
“mediaphoto”=>{“title”=>“Test photo”,
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,

[email protected]

it`s described by :path_prefix param or default
has_attachment :storage => :file_system,
:path_prefix => ‘public/pictures/avatar/blogs’,

i`m testing the proj on XP and it work fine

[email protected]:

You can override the full_filename method by coding it in your model.
Copy the source from attachment_fu.rb into your model and hack away.