use storage sync to keep track of the fileId used.