Hi Iban Cardona,
As I said "I'm not that familiar with the File API" so could not really comment. I just have different experience with the Grid format that is related but that was ages ago, so would take time to relearn what I coded.
Kind regards,
Gareth