flowjs / flow-php-server

flow.js php server library, validates uploaded chunks and safely merges all chunks to a single file
http://flowjs.github.io/ng-flow/
MIT License
245 stars 42 forks source link

File corruption #5

Closed Acorath closed 6 years ago

Acorath commented 10 years ago

I'm currently working on a project which uses flow.js and flow-php-server.

9 times out of 10, when uploading the same 5mb PDF it transfers fine. However, sometimes it will arrive corrupted. A successful transfer would have a mime-type of "application/pdf", the corrupt transfers have a mime-type of "application/octet-stream".

I'm not sure if the root of the corruption is on the client or server side. Let me know what info you need and I'll pull together what I can.

rzajac commented 9 years ago

Maybe this is caused by: #8 ?

Acorath commented 9 years ago

I'm not certain. The file size appears to be correct regardless of the file being corrupted. I'll run more tests as time permits and will hopefully have something better for you to go on soon.

Stay tuned...

dkarter commented 9 years ago

I have this issue as well: simultaneous pdf uploads appear to work but the files arrive corrupted, sometimes it works and sometimes doesn't. I am using Ruby on Rails as my server.

devcodebakerz commented 6 years ago

This issue seems to be because of difference of loop types while validating and merging. While validating the for loop is decremental and while merging it was an incremental for loop. So I don't see any traction on this issue, how can I submit ? or can I even submit ?

AidasK commented 6 years ago

I think this is issue of unsupported windows os or ruby implementation so it can be closed.