def METHOD_NAME(request, directory):
    from PYME.IO import clusterIO
    files = request.FILES.getlist('file')
    for file in files:
        targetFilename = directory + file.name
        if clusterIO.exists(targetFilename):
            return HttpResponseForbidden('Upload failed [no files uploaded]. %s already exists on cluster' % targetFilename)
    for file in files:
        targetFilename = directory + file.name
        clusterIO.put_file(targetFilename, file.read())
    return HttpResponseRedirect(request.META['HTTP_REFERER'])