Added /files not in index to ignore
Added logic for successful upload