On 26 nov, 15:03, Sithembewena Lloyd Dube <zebr...@gmail.com> 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 django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.