ccessfully able to upload files(images) and store them in my
> defined
> > folder and the link in my mysql database.
> > the error comes when i try to return the image with the HTTP RESPONSE
> were
> > i get a image keyError.. i am not sure wht i am doing w
ith the HTTP RESPONSE were
> i get a image keyError.. i am not sure wht i am doing wrong..
> here is my code:
>
> def handle_uploaded_file(f,u):
> profile=u.get_profile()
> profile.avatar=f.name
> destination = open('images/users/'+f.name, 'wb+')
>
2 matches
Mail list logo