Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Same file, what's happening? #21

Open
giorgiocaviglia opened this issue Oct 17, 2012 · 1 comment
Open

Same file, what's happening? #21

giorgiocaviglia opened this issue Oct 17, 2012 · 1 comment

Comments

@giorgiocaviglia
Copy link
Contributor

When uploading a file already present, is it possible that something goes wrong...? Check it please.

@fcurella
Copy link
Contributor

If you are using Django's FieldField, with default storage, when you upload a file and there's already a file with same name present, the storage backend will rename the destination by appending underscores until the filename is unique.

see:

https://docs.djangoproject.com/en/1.4/ref/files/storage/#django.core.files.storage.Storage.save
https://github.com/django/django/blob/master/django/core/files/storage.py#L62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants