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 same
(name) file.

Thanks and regards,

Chatchai

On Jan 27, 11:57 am, Malcolm Tredinnick <malc...@pointy-stick.com>
wrote:
> 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 nothing about the
> resource -- if two names are the same, it doesn't mean the contents are.
> Also, the name you store it under on the filesystem isn't (necessarily)
> the name that the user sees it as.
>
> Regards,
> Malcolm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to