On Sat, Jun 7, 2008 at 4:35 PM, tejas <[EMAIL PROTECTED]> wrote: > Hi All > > I've been using django's newforms library to handle file uploads. To > do this safely I also use pyclamd to virus check the content of the > files (using the values['file'] dict which has been validated with > newforms). If there's a virus found I want to delete the file from the > server immediately, but I can't seem to find the temporary path of the > uploaded file. The dict only contains 'content' and 'filename'. I've > looked at request.FILES too, and that doesn't contain the path. Is > there any way I can delete the uploaded file from temporary storage > immediately? >
Until ticket #2070 lands (http://code.djangoproject.com/ticket/2070), there is no temporary file, the file data is read into memory and not saved to a file until you do it explicitly (or not so explicitly by saving a model instance with the associated FileField). Karen --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---