Maybe your difficulty mainly arises from trying to do two things with one 
form?

As a suggestion,  this logic might make it easier...

Display form1 showing choices of pictures on your server.
Display another form2 with an "upload another pic" button.
On submit form1:  save the record and redirect.
On submit form2:  save the extra pic,  then re-display the page including 
the extra pic.



On Sunday, 5 August 2012 16:49:39 UTC+1, Don_X wrote:
>
>  Hello,
>
> I am having problems with showing a thumbnail image once it is uploaded by 
> the user when registering
> I have been trying to have an uploaded image showing up dynamically on a 
> form before submitting the form with no luck !
>
> I have used the following recipe slices found but it is not behaving the 
> way I want !
>
>
> http://www.web2pyslices.com/slice/show/1387/upload-image-and-make-a-thumbnail
> & / or 
>
> http://www.web2pyslices.com/slice/show/1522/generate-a-thumbnail-that-fits-in-a-box
>
> The thumbnail image gets uploaded in the database table with both methods 
> ! I can only see it after I am done with the form ( after submiting and 
> have it shown ) ... but it never shows up before hand on the form like I 
> want !
>
> Does any one have a suggestion ? ... have anyone done something similar ? 
> ..
>
> What I really want to accomplish is this :
>
> When a user is subscribing, and reaches the part of the form to upload his 
> picture ( or choose among 3 predefined thumbnail images ... an a 4th choice 
> being to upload his own pic  and have it shown on the form as thumbnail)
>
> I cannot accomplish this scenario !  have any one done this with web2py 
> ???? ... choosing a thumbnail image among 3 thumbnail images ... or to 
> upload his own and have it shown and selected before finishing the form ...
>
> I am having problems with these 2 objectives :
>
> 1st ) showing the uploaded image as thumbnail before completing the form ..
> 2nd) showing up a list of 3 thumbnail images to choose from ( with radio 
> buttons ) with one of them selected by default and the option to do the 1st 
> objective described previously !
>
> please .. any help, cues or snippets of codes to accomplish this ... will 
> be greatly appreciated
>
> Don.
>
>
>

-- 



Reply via email to