Re: Best way to unique upload file name

2009-01-26 Thread Malcolm Tredinnick
On Mon, 2009-01-26 at 21:06 -0800, chatchai wrote: > Thanks for your quick reply, > > I need to unique file upload name because the client say the file is > unique by name (date based) so that they won't upload the same file. > > I know that the file name cannot determine file uniqueness. > >

Re: Best way to unique upload file name

2009-01-26 Thread chatchai
Thanks for your quick reply, I need to unique file upload name because the client say the file is unique by name (date based) so that they won't upload the same file. I know that the file name cannot determine file uniqueness. At this point, I need to return error if they try to upload the sam

Re: Best way to unique upload file name

2009-01-26 Thread Malcolm Tredinnick
On Mon, 2009-01-26 at 20:52 -0800, chatchai wrote: [...] > I know that Django will append the underscore after the file name > until the file can be saved but what i mean is, > do not allow the file with the same name to be able to upload. That's kind of an odd requirement. The filename says noth

Re: Best way to unique upload file name

2009-01-26 Thread chatchai
On Jan 27, 11:44 am, Malcolm Tredinnick wrote: > On Mon, 2009-01-26 at 20:39 -0800, chatchai wrote: > > Hi, > > > I want to unique upload file and there is not unique parameter > > available for file field model. I think I can do this at the form > > level but I just want to make sure if it is

Re: Best way to unique upload file name

2009-01-26 Thread Malcolm Tredinnick
On Mon, 2009-01-26 at 20:39 -0800, chatchai wrote: > Hi, > > I want to unique upload file and there is not unique parameter > available for file field model. I think I can do this at the form > level but I just want to make sure if it is the best way to go. The simplest way is to let Django do i

Best way to unique upload file name

2009-01-26 Thread chatchai
Hi, I want to unique upload file and there is not unique parameter available for file field model. I think I can do this at the form level but I just want to make sure if it is the best way to go. Any comment or example is welcome. Thanks, Chatchai --~--~-~--~~~---~-