Forum: Ruby on Rails Setting image

Posted by Avi (Guest)
on 2013-01-17 11:28
(Received via mailing list)
Hello All,

I am uploading an image from disc. While choosing the image I want to 
show
that image on the UI.
How can I do that?
I am using paperclip gem.

Thanks,
Avi
Posted by Ashokkumar Yuvarajan (Guest)
on 2013-01-17 14:15
(Received via mailing list)
Hi Avi,

Good Day,

Follow this url, very simple. Use it and enjoy.
http://saravani.wordpress.com/2012/03/14/preview-o...

Thanks,
Maddy :)


On Thu, Jan 17, 2013 at 3:57 PM, Avi <aavinash.behera@gmail.com> wrote:

> --
>
--

*"Attitude is a little thing that makes a big difference"*


Thanks & Regards
*Ashokkumar.Y*
*ROR-Developer
**email : ashokkumar@shriramits.com*
*Shriramits*


*
*
Posted by Jim ruther Nill (jimboker)
on 2013-01-17 14:39
(Received via mailing list)
On Thu, Jan 17, 2013 at 6:27 PM, Avi <aavinash.behera@gmail.com> wrote:

> Hello All,
>
> I am uploading an image from disc. While choosing the image I want to show
> that image on the UI.
> How can I do that?
> I am using paperclip gem.
>

before html5, i think this is not possible since javascript shouldn't 
have
access to your
file system.  what you can do is upload the image first then show a 
preview
after.


> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-....
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



--
Posted by Avi (Guest)
on 2013-01-17 14:54
(Received via mailing list)
The requirement is:-

When we click on the button to choose the file, after choosing, the 
image
should be shown in the ui in IFRAME or something.
Not sure how to do that...
Posted by Jim ruther Nill (jimboker)
on 2013-01-17 15:50
(Received via mailing list)
On Thu, Jan 17, 2013 at 9:52 PM, Avi <aavinash.behera@gmail.com> wrote:

> The requirement is:-
>
> When we click on the button to choose the file, after choosing, the image
> should be shown in the ui in IFRAME or something.
>
Not sure how to do that...
>

this is a shameless plug but you can look at my blog if you need help in
doing this

http://jimlabs.heroku.com/posts/multiple-image-upl...


>>> I am uploading an image from disc. While choosing the image I want to
>>
>>>
>>
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-....
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



--
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.