As per IRC: Using uniqid() multiple times might result in a huge length extension for the physical filename which may in the end be longer than what the filesystem allows. NTFS: "255 UTF-16 code units"