(Noob) Image upload: rename file
Justin "nagash" Jones
j.nagash at gmail.com
Sun Mar 2 22:36:53 EST 2008
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
More information about the Merb-devel
mailing list