Expand my Community achievements bar.

Split large file into chunks to upload in Dropbox via Fusion

Avatar

Level 1

Hello community,

The question:

Is there a way to split a large file into smaller chunks via Fusion?

The reason:
What I'm trying to achieve is to upload a file into Dropbox via Fusion's HTTP connection.
Dropbox's API has an endpoint "/upload" which suits for file under 150MB.
For larger file (as it is in my case) they suggest to use combination of 3 endpoints:

 

  • /upload_session/start
  • /upload_session/append
  • /upload_session/finish

To use those I need to split the file into chunks, but this seems impossible so far.

What I have tried so far:
I've tried to use "Repeater" module which repeats as much times as the result of file size divided by the  required chunk size. Then I've used substring()  to get the binary file data splatted into chunks depending the Repeater's value. Something like this:

HristoYordanov_0-1666261897500.png

Unfortunately the result seems to be correct only for the first chunk:

HristoYordanov_1-1666261959671.png

Any ideas how to get this work? Or any other approaches?


 

1 Reply

Avatar

Level 4

Have you had any luck with this? I am also having the same problem.