How to modify current chunk data during upload process with FineUploader

480 views Asked by At

We need to call a third party lib, ideally at the time of onUploadChunk callback. As shown in the documentation (http://docs.fineuploader.com/branch/master/api/events.html#uploadChunk), we can have some parameters in order to identify the chunk and do stuff with the javascript slice method.

But, the question is : how to give back updated chunk into the fineuploader upload process ?

Thanks a lot for help.

1

There are 1 answers

4
Ray Nicholus On

You cannot modify the chunks created by Fine Uploader, nor should you be able to as it may change the size of the chunk, the expected total number of chunks, and require adjustments of internal state and sent parameters. If you'd like to modify any files, you have two options:

  1. Modify the file before it is sent to to Fine Uploader
  2. Modify the file before the file upload begins. You can cancel the original file, and then submit the changed versions via the addFiles API method.