Re: Problem with file upload!

2011-09-04 Thread Ludvig
Im so sorry it was a typo, i did wrote self.request.method ==" POST" in code On Sep 4, 7:00 pm, Simon Connah wrote: > On 4 Sep 2011, at 11:25, Ludvig wrote: > > > added a print statement after self.request.post == "POST" and it came > > out, so its a post. > > You should use: > > if request.metho

Re: Problem with file upload!

2011-09-04 Thread Simon Connah
On 4 Sep 2011, at 11:25, Ludvig wrote: > added a print statement after self.request.post == "POST" and it came > out, so its a post. You should use: if request.method == 'POST': instead. That is the correct method to determine whether a URL was requested using the POST method. -- You receiv

Re: Problem with file upload!

2011-09-04 Thread Ludvig
added a print statement after self.request.post == "POST" and it came out, so its a post. On Sep 3, 9:29 am, Jeff Tchang wrote: > Can you verify that your request method is indeed a POST? Print it out > if necessary. > > -Jeff > > > > > > > > On Fri, Sep 2, 2011 at 10:39 AM, Ludvig wrote: > > He

Re: Problem with file upload!

2011-09-04 Thread Ludvig
No errors, and yes the file exists on the file system. I can see its title in request.raw_post_data On Sep 3, 2:34 am, Mo Mughrabi wrote: > is there any error messages you seeing? or logged? does the file exists on > the filesystem? > > > > > > > > On Fri, Sep 2, 2011 at 8:39 PM, Ludvig wrote: >

Re: Problem with file upload!

2011-09-03 Thread Jeff Tchang
Can you verify that your request method is indeed a POST? Print it out if necessary. -Jeff On Fri, Sep 2, 2011 at 10:39 AM, Ludvig wrote: > Hello, > > Usually only read these posts so i hope i'm doing this right! > > Recently my file upload just stopped working, and i've no idea what > i've chan

Re: Problem with file upload!

2011-09-02 Thread Mo Mughrabi
is there any error messages you seeing? or logged? does the file exists on the filesystem? On Fri, Sep 2, 2011 at 8:39 PM, Ludvig wrote: > Hello, > > Usually only read these posts so i hope i'm doing this right! > > Recently my file upload just stopped working, and i've no idea what > i've chang

Problem with file upload!

2011-09-02 Thread Ludvig
Hello, Usually only read these posts so i hope i'm doing this right! Recently my file upload just stopped working, and i've no idea what i've changed. I noticed that request.FILES is empty so i've googled some and cant figured out my problem. My form looks like this