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

Feature/check chunk number #30

Closed tsuzukit closed 8 years ago

tsuzukit commented 8 years ago

For some occasion, I have seen $file->validateFile() passes at second last request of POST. I think it would be good to check explicitly if current chunk number is the last one.

AidasK commented 8 years ago

Chunks can be uploaded in random sequence, because of this we should check existence of all chunks.

tsuzukit commented 8 years ago

Ah ok, thank you.

I have experienced $file->save() is called twice and file is corrupted when that happen. (I followed Advanced Usage in REAME.md)

I guess my implementation may not be good, so I will investigate more. Anyways, thank you for the great library.

AidasK commented 8 years ago

Are you running in windows env?

tsuzukit commented 8 years ago

Curerntly I use Centos6.5 on vagrant