Well, Bruno, if I knew exactly how to solve this I wouldn't be sitting here taking your snooty remarks, would I? I am asking because I do not know how to go about it.
On Fri, Nov 26, 2010 at 4:50 PM, bruno desthuilliers < [email protected]> wrote: > > > On 26 nov, 15:03, Sithembewena Lloyd Dube <[email protected]> wrote: > > I found the issue: it is the path to the image. When I change the problem > > line to > > > > image = Image.open(os.path.realpath('C:\Users\Lloyd\Desktop\Lloyd.png')) > > > > it works, > > Well, kinda... accidentally... > > > but I cannot hard code the path and I cannot predict where the > > user will try to upload a file from. > > That's not exactly the problem, but the mere fact you think you could > solve your problem that way says a lot about your misunderstanding of > the HTTP protocol. > > > > Isn't there a way to dynamically get > > the path from the file upload dialogue where the user browses to it and > > selects it? > > What would you do with this information ? Do you really think the > server on which your application will be deployed will have any access > to the client's filesystem ??? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<django-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

