On Nov 3, 5:50 am, Raju Aralikatti <rails-mailing-l...@andreas-s.net>
wrote:

>           file = File.new(File.join(file_path), "wb")
>           file.write(params['file_' + i.to_s].read)

You're not closing the file you create, which could conceivably cause
problems (if you use the block form of File.open you don't need to
worry about that)

Fred

>           file_path_array << file_path
>         #rescue
>         #end
>       end
>     end
> Mailer.deliver_create_ticket user_email,file_path_array
>
> After the files are uploaded I am attaching all the files in the mail
> and sending them.
>
> So here is my problem,
>
> 1. The files attached in the mails are not complete. ie if i have upload
> any file, there will be all attachments but they wont open, some images
> uploaded will display only half.
>
> I am using apache + mongrel congiguration.
>
> Please help me its urgent.
>
> Thanks,
> Raju
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to