snaps

Changeset 204

Show
Ignore:
Timestamp:
01/08/2007 10:07:02 AM (1 week ago)
Author:
wbyoung
Message:

might have fixed issues with windows

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app/models/submission.rb

    r194 r204  
    163163      # need to move the image first 
    164164      #File.link(@upload_f.path(), path) 
    165       File.open(self.original_path(true), "w") { |f| f.write(@upload_f.read) } 
     165      File.open(self.original_path(true), "wb") { |f| f.write(@upload_f.read) } 
    166166 
    167167      default_class = ImageProcessors::Plugin.processor('default')