Adds index to file-upload dir.