On Fri, Feb 11, 2011 at 2:05 PM, Gabriel - Iulian Dumbrava <[email protected]> wrote: > I found a solution on the second part, sending the file back to the > user with the original filename here: > http://stackoverflow.com/questions/1156246/having-django-serve-downloadable-files > > I would still need some help on the first part. > > Thanks, > Gabriel >
http://docs.djangoproject.com/en/1.2/ref/models/fields/#django.db.models.FileField.upload_to """ This may also be a callable, such as a function, which will be called to obtain the upload path, including the filename. This callable must be able to accept two arguments, and return a Unix-style path (with forward slashes) to be passed along to the storage system. The two arguments that will be passed are⦠""" Cheers Tom -- 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.

