Re: File upload and access properties

2008-09-01 Thread Clinton De Young
I haven't messed with it, so I don't know if it would work or not, but couldn't you just set the umask of the directory to the permissions you want? Clinton On Aug 26, 2008, at 12:05 PM, Gerard Petersen wrote: > > Possibly not the cleanest of solutions, but you could put a sticky > bit o

Re: File upload and access properties

2008-08-26 Thread Gerard Petersen
Possibly not the cleanest of solutions, but you could put a sticky bit on the parent directory to force this. Regards, Gerard. Malcolm Tredinnick wrote: > > On Mon, 2008-08-25 at 22:44 -0700, Julien Phalip wrote: >> Hi, >> >> I'm using the FileSystem storage to save uploaded files, in a very

Re: File upload and access properties

2008-08-25 Thread Julien Phalip
> That is the subject of ticket #8454. Thanks Malcolm! I had missed that one. I like the proposed patch. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

Re: File upload and access properties

2008-08-25 Thread Malcolm Tredinnick
On Mon, 2008-08-25 at 22:44 -0700, Julien Phalip wrote: > Hi, > > I'm using the FileSystem storage to save uploaded files, in a very > basic way: > > storage.save('/blah/test.mp3', uploaded_file) > > Now, the resulting file has '600' file access properties. That file is > then served by apache

File upload and access properties

2008-08-25 Thread Julien Phalip
Hi, I'm using the FileSystem storage to save uploaded files, in a very basic way: storage.save('/blah/test.mp3', uploaded_file) Now, the resulting file has '600' file access properties. That file is then served by apache, but because of those access properties, it cannot be accessed as you get