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

Client and Server only works on same host. #51

Closed mitmelon closed 1 year ago

mitmelon commented 1 year ago

I have the flowjs client on localhost and then hosted the ng-flow server on cloud. Sending the file to the target of the server... Keep getting this error

sha1(): Passing null to parameter #1 ($string) of type string is deprecated"

But when I placed the server and client on same host, it works... but on different host it doesnt work and have added headers such as

header('Content-Type: application/json; charset=UTF-8');
header('Access-Control-Allow-Origin: *');
header('Access-Control-Max-Age: 3600');

For CORS but yet its not working.

On client i have

var flow = new Flow({
  target:'https://my-server-link/upload', 
  query:{upload_token:'my_token'},
chunkSize: 1024*1024,
});

Please what is the workable method to use this?

Blueblazer172 commented 6 months ago

how did you solve the issue ?