set files to available only if they have been completely uploaded.
Use the correct id.