If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!


  • 0
    joecodeswell  8 years ago

    Hi Yarin,

     

    This is just what i was looking for. I found a small nit however. When i first ran the code, i got an error with a ticket that said:

    "UnboundLocalError: local variable 'images' referenced before assignment." referring to the controller  statement at line 18 "

    return dict(images=images)

    "

    I put this statement "images = [] # needed this on first go around" just before the if and things seemed to go smoothly.

    Thanks again, for a great recipe.

    Love and peace,

     

    Joe

    replies (1)
    • ykessler 7 years ago

      Hey Joe,

      Not sure how you got that error- just retested and it worked no prob. Anyway, glad you found it useful. -Y

Commented on:

Complete working example of an image uploader demonstrating manual file uploading in web2py

Hosting graciously provided by:
Python Anywhere