pass fileid properly to pwredirect()