Is there a possibility to post a part of a file to the file service?


#1

Hey DF Community,

is there a possibility to do that?
…or is there another solution to upload files which are big enough that they can’t be uploaded with one step?
Should I use a service with costum scripts?

Thanks and best regards,

Phil


#2

yes you can.

It’s not easy.
One way is to use a custom script.

Your client encode as base64 his file. split the hash and send each parts on a JSON like:

{
“fileId”:“ouhjkhlhiluioydrfd”, //md5hash of file
"part": 5,
“numberOfParts”: 10,
“data”: “KLHGUILYTZIOYJKGHG” //base64 part of file
}

Your custom script merge all parts when the last is received and invoke file service to put it where you want.