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

Advanced Server #57

Closed
japheth-waswa opened this issue Jun 16, 2018 · 4 comments
Closed

Advanced Server #57

japheth-waswa opened this issue Jun 16, 2018 · 4 comments

Comments

@japheth-waswa
Copy link

Great library,i have been able to get it up and running,though i need more functionality on the server ie
1.Returns/extract the size of file uploaded ie for each partial request
2.Returns/Extract the location of the uploaded file and the file name
The above two must be able to be done on the server side.
Thanks in advance.

@ankitpokhrel
Copy link
Owner

@japheth-waswa you can get size and path from cache

$server->getCache()->get($key);

@japheth-waswa
Copy link
Author

japheth-waswa commented Jun 16, 2018 via email

@ankitpokhrel
Copy link
Owner

The response header contains Upload-Offset which is the sum of the offset before the PATCH request and the number of bytes received and processed or stored during the current PATCH request. To get the header you can do something like this:

$uploadedBytes = $server->getRequest()->header('Upload-Offset');

@japheth-waswa
Copy link
Author

japheth-waswa commented Jun 17, 2018 via email

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

No branches or pull requests

2 participants