2010-10-11 5 views

Répondre

1

Vous faites quelque chose comme ceci:

tempfile = request.POST['file'] 
file_path = 'uploaded_files/' + tempfile.filename # for the original filename 
permanent_file = open(file_path, 'wb') 
shutil.copyfileobj(tempfile.file, permanent_file) 
Questions connexes