How to save django FileField to user folder?
If you added a user field to the model, and have that attribute set before you performed an upload, then you could get the user in to your upload_location function via the instance attribute.
I've got a model like this



def upload_location(instance, filename):
    return 'validate/%s/builds/%s' % (get_current_user(), filename) 

class MidletPair(models.Model):
    jad_file = models.FileField(upload_to = upload_location)
    jar_file = models.FileField(upload_to = upload_location)
    upload_to=tempfile.gettempdir()



How can I get the current user in upload_location()... ?
Side note:  Looking up django stuff is confusing as theres a lot of pre-1.0 stuff around on the net.