-
-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$fileReceived->isFinished() is never called when uploading the file from a different site #158
Comments
I just switched these from true to false and it now works. Session is now
|
In case of laravel-chunk-upload/src/Handler/AbstractHandler.php Lines 107 to 109 in 0564c77
When laravel-chunk-upload/src/Handler/AbstractHandler.php Lines 112 to 114 in 0564c77
The session ID is probably changes every time because the browser blocks the set cookie or just simply does not sends it because the request is cross-domain. It is better to use the session identifier because the IP and the user agent might be empty and can be the same between users. |
Got it, thanks for the reply. Is there a specific cookie I should be sending from the sender app to the receiver? |
@tato-rj same issue but setting browser true and session false in config not working for me |
What steps will reproduce the problem?
I am using resumable.js to upload the file. The resumable.js is in one website, and the backend chunk-upload is in another (it all works well if both are on the same site).
What is the expected result?
When both frontend and backend are in the same site, it all works. The chunks are created and the
$fileReceived->isFinished()
is triggered as expected.What do you get instead?
When the file is sent from a different site (which is the setup I need), the chunks are created but the
$fileReceived->isFinished()
never gets called.Additional info
When logging the
$fileReceived->handler()->getPercentageDone()
, I noticed something interesting:This is the log when all works well (both frontend and backend are in the same site)
And here is the log when it doesn't (frontend and backend are in different sites)
It seems to get stuck at 10% but stops after the same amount of iterations. The chunks are created as expected.
The text was updated successfully, but these errors were encountered: