Skip to content
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

SimpleRequest is empty #15

Closed
Pixelairport opened this issue Apr 17, 2016 · 1 comment
Closed

SimpleRequest is empty #15

Pixelairport opened this issue Apr 17, 2016 · 1 comment

Comments

@Pixelairport
Copy link

Pixelairport commented Apr 17, 2016

I use Laravel and AngularJS. I tested so much and nothing worked... first i startet with flow.js now ended with resumable ... i think i only have a last problem before it will work. I have this code:

...
use Dilab\Network\SimpleRequest as DilabSimpleRequest;
use Dilab\Network\SimpleResponse as DilabSimpleResponse;
use Dilab\Resumable as DilabResumable;
...
// Setup resumeable
$request = new DilabSimpleRequest();
$response = new DilabSimpleResponse();
$resumable = new DilabResumable($request, $response);
$resumable->tempFolder = $chunkDir;
$resumable->uploadFolder = $basicDir;
...
// Upload
$resumable->process();
...

What i found is that $request seems to be empty. If i do the following code, i dont get an object...

return json_encode([
'success' => $request
]);

Hope you can help me? :(

@Pixelairport
Copy link
Author

Now it works... just needed to set testChunks: false in my settings for resumable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant