Re: Image upload from another website using image url

2011-05-09 Thread nederhoed
Hi Esam, first of all: form = Addpic(request.POST) Secondly, could you respond to my 3 suggestions, are they clear? Why would start processing the form before checking if it is valid? See also: http://docs.djangoproject.com/en/dev/topics/forms/ Good luck! RR On May 9, 8:45 pm, esam al deen w

Re: Image upload from another website using image url

2011-05-09 Thread esam al deen
@nederhoed: what i need to to do is allow user to store files from anywhere include another web site , when user give me a file "browse button " i get it and store it, another method that user can give me file url >>www.example.com/main.jpg ,, i wrote the code that got the file and stored it into

Re: Image upload from another website using image url

2011-05-09 Thread esam al deen
@nederhoed: what i need to to do is allow user to store files from anywhere include another web site , when user give me a file "browse button " i get it and store it, another method that user can give me file url >>www.example.com/main.jpg ,, i wrote the code that got the file and stored it int

Re: Image upload from another website using image url

2011-05-09 Thread nederhoed
Hi Esam, If I understand you correctly, you want to preserve the image data even if the user used an invalid value in another form field, rendering the form invalid? You could: 1. add the image to the user's session, without saving it to the DB. 2. add the image URL to the user's session, showing

Image upload from another website using image url

2011-05-09 Thread esam al deen
i want to make an image uploader using images links on the internet (eq: .example.com/image.jpg). The user writes the previous url and then my model upload it. This my code: form>> view.py def Post_date(): if request.method == 'POST': form = Addpic()#simple form to capture data image_url