Hi! I''m building an app where the user can upload images. this works fine and the uploaded file is copied from the temp directory to an MerbRoot/uploads/id directory. my problem is that the filename is something like Merb.5288.0. How can I rename it? my model is available at pastie.<http://pastie.caboo.se/160143> I''m sure this question is not too sophisticated (-; regards flo schaf PS: The value of the size field is always 0. why? (thats not that important) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/merb-devel/attachments/20080302/6e531732/attachment.html
fileparams[:filename] contains the original filename. Justin On Mon, Mar 3, 2008 at 2:44 AM, Florian Schaf <flo.schaf at gmail.com> wrote:> Hi! > I''m building an app where the user can upload images. this works fine and > the uploaded file is copied from the temp directory to an > MerbRoot/uploads/id directory. my problem is that the filename is something > like Merb.5288.0. How can I rename it? my model is available at pastie.<http://pastie.caboo.se/160143> > I''m sure this question is not too sophisticated (-; > regards > flo schaf > > PS: The value of the size field is always 0. why? (thats not that > important) > _______________________________________________ > Merb-devel mailing list > Merb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/merb-devel > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/merb-devel/attachments/20080303/771760e5/attachment-0001.html
Seemingly Similar Threads
- $("xxx") has no properties
- one db - many rails projects -> many schema_migrations table
- [LLVMdev] Looking for advice on how to debug a problem with C++ style exception handling code that my compiler generates.
- [LLVMdev] Looking for advice on how to debug a problem with C++ style exception handling code that my compiler generates.
- [LLVMdev] A weird, reproducable problem with MCJIT