adding files api