fileApi chunk uploader iteration optimized