Re: File upload fail on live server

2010-12-10 Thread Sithembewena Lloyd Dube
Good idea, Kenneth. I will do so. Thanks. On Fri, Dec 10, 2010 at 8:00 AM, Kenneth Gonsalves wrote: > On Thu, 2010-12-09 at 14:57 +0200, Sithembewena Lloyd Dube wrote: > > Thanks Kenneth. I tried your recommendation, the file is not uploaded > > at > > all. I'm stumped by

Re: File upload fail on live server

2010-12-09 Thread Kenneth Gonsalves
On Thu, 2010-12-09 at 14:57 +0200, Sithembewena Lloyd Dube wrote: > Thanks Kenneth. I tried your recommendation, the file is not uploaded > at > all. I'm stumped by this, as > the folder is writable by apache. I will post on here when I do > implement a > fix. > > do one thing - make the file

Re: File upload fail on live server

2010-12-09 Thread Sithembewena Lloyd Dube
Thanks Kenneth. I tried your recommendation, the file is not uploaded at all. I'm stumped by this, as the folder is writable by apache. I will post on here when I do implement a fix. On Thu, Dec 9, 2010 at 1:46 PM, Kenneth Gonsalves wrote: > On Thu, 2010-12-09 at 13:42 +0200,

Re: File upload fail on live server

2010-12-09 Thread Kenneth Gonsalves
On Thu, 2010-12-09 at 13:42 +0200, Sithembewena Lloyd Dube wrote: > Thanks Kenneth, am trying to figure out how to set the MEDIA_ROOT to > the > folder outside the project. /home/lloyd/smedia/ and make it writable by the webserver -- regards Kenneth Gonsalves -- You received this message

Re: File upload fail on live server

2010-12-09 Thread Sithembewena Lloyd Dube
Thanks Kenneth, am trying to figure out how to set the MEDIA_ROOT to the folder outside the project. On Thu, Dec 9, 2010 at 12:58 PM, Kenneth Gonsalves wrote: > On Thu, 2010-12-09 at 12:47 +0200, Sithembewena Lloyd Dube wrote: > > Is it proper/ feasible to save media to and

Re: File upload fail on live server

2010-12-09 Thread Kenneth Gonsalves
On Thu, 2010-12-09 at 12:47 +0200, Sithembewena Lloyd Dube wrote: > Is it proper/ feasible to save media to and serve it from, a media > folder > outside of the project? it is proper - as this will not come under version control whereas the project will -- regards Kenneth Gonsalves -- You

Re: File upload fail on live server

2010-12-09 Thread Sithembewena Lloyd Dube
Issue isolated. The uploads are going into the MEDIA_ROOT, which is the 'media' folder in my app. The MEDIA_URL is pointing to a location outside of the project. Is it proper/ feasible to save media to and serve it from, a media folder outside of the project? On Thu, Dec 9, 2010 at 12:01 PM,

Re: File upload fail on live server

2010-12-09 Thread Sithembewena Lloyd Dube
Hi Kenneth, The FileField is optional indeed. Surely it should be populated where a file is provided though? Update: turns out I have not installed the PIL on my staging server. Am doing so now and retesting. this may well turn out to be a PEBKAC :) Thanks. On Thu, Dec 9, 2010 at 11:46 AM,

Re: File upload fail on live server

2010-12-09 Thread Kenneth Gonsalves
On Thu, 2010-12-09 at 15:11 +0530, Kenneth Gonsalves wrote: > On Thu, 2010-12-09 at 10:20 +0200, Sithembewena Lloyd Dube wrote: > > However, my live application fails to upload the file (ie the > > FileField is > > empty in the database after uploading, and the file is not > uploaded). > > path

Re: File upload fail on live server

2010-12-09 Thread Kenneth Gonsalves
On Thu, 2010-12-09 at 10:20 +0200, Sithembewena Lloyd Dube wrote: > However, my live application fails to upload the file (ie the > FileField is > empty in the database after uploading, and the file is not uploaded). path problem or permission problem -- regards Kenneth Gonsalves -- You

Re: File upload fail on live server

2010-12-09 Thread Sithembewena Lloyd Dube
PS: I also a have a separate model which is using an ImageField subclass to upload an avatar. On my development machine, I can edit a record and change the thumbnail without issues. On the live server, nice the thumbnail is saved it cannot be changed. Ideas? On Thu, Dec 9, 2010 at 10:20 AM,

File upload fail on live server

2010-12-09 Thread Sithembewena Lloyd Dube
Hi guys, I have a form where I use a FileField to upload a file to the server and this works fine on my local machine. However, my live application fails to upload the file (ie the FileField is empty in the database after uploading, and the file is not uploaded). I know this is a pot shot, but