Hi all!
I wrote a model to hold files uploaded by users, it goes like this:
Model:
class Userfiles(models.Model):
user = models.ForeignKey(
User,
verbose_name="user name",
)
upload_file = models.FileField(
u"file",
upload_to='user/%Y/%m/%d',
)
upload_date = models.DateTimeField(
auto_now=True,
)
and when I try to add an mp3 file with chinese filename through the
admin interface, the files are not saved correctly, their names are
changed to something like: '.mp3', '_.mp3', '__.mp3'.
Has anyone any idea on how to solve this problem? Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---