# |
Jun 27th 2019, 16:25 |
jeremyharris |
I’m not sure where that code is, but the error looks like it’s happening after you POST the upload |
# |
Jun 27th 2019, 16:24 |
nudl3ss |
if i dump in the action what data is sent from ajax is all fine like normal formdata |
# |
Jun 27th 2019, 16:23 |
nudl3ss |
$server = Router::url(array('controller' => 'Tus', 'action' => 'server')); $client = new \TusPhp\Tus\Client($server); |
# |
Jun 27th 2019, 16:23 |
nudl3ss |
is it possible to be from this line here |
# |
Jun 27th 2019, 16:21 |
jeremyharris |
that looks like an error caused by the library, perhaps you aren’t submitting the data as expected by the server? |
# |
Jun 27th 2019, 16:18 |
nudl3ss |
and yeah i removed redis but its the same |
# |
Jun 27th 2019, 16:18 |
nudl3ss |
yeah they are writable, i used normal upload before and it was all fine |
# |
Jun 27th 2019, 16:16 |
nudl3ss |
This is the response that i get |
# |
Jun 27th 2019, 16:00 |
jeremyharris |
lastly, the example uses redis. are you using redis? perhaps you should leave that blank for file based caching first |
# |
Jun 27th 2019, 15:59 |
jeremyharris |
also, are you sure your files directory is writable by the server? |
# |
Jun 27th 2019, 15:59 |
jeremyharris |
@nudl3ss can you post the error you are getting? |
# |
Jun 27th 2019, 15:49 |
nudl3ss |
server here |
# |
Jun 27th 2019, 15:47 |
slackebot |
<nudl3ss> |
# |
Jun 27th 2019, 15:45 |
slackebot |
<nudl3ss> |
# |
Jun 27th 2019, 15:38 |
ricksaccous |
i didn't read through the whole thing |
# |
Jun 27th 2019, 15:38 |
ricksaccous |
and you might have to hook the endpoints in with the js or something |
# |
Jun 27th 2019, 15:38 |
ricksaccous |
with that integration |
# |
Jun 27th 2019, 15:38 |
ricksaccous |
it seems like he is just providing you endpoints |
# |
Jun 27th 2019, 15:38 |
ricksaccous |
yeah of course |
# |
Jun 27th 2019, 15:37 |
nudl3ss |
@ricksaccous yeah but its only for the server, I dont think its everything ? |
# |
Jun 27th 2019, 15:37 |
ricksaccous |
@nudl3ss did you see the section about cakephp integration? |
# |
Jun 27th 2019, 15:34 |
ricksaccous |
i was hitting a redirect loop because i didn't realize cake wasn't reading my Router compatible ['plugin' => 'Whatever'] url, then i realized you need to use a special urlChecker class or something |
# |
Jun 27th 2019, 15:33 |
neon1024 |
Hah :rubberduck: |
# |
Jun 27th 2019, 15:33 |
neon1024 |
I can do that |
# |
Jun 27th 2019, 15:33 |
neon1024 |
I kinda want the value to be a closure |
# |
Jun 27th 2019, 15:33 |
neon1024 |
Just trying to avoid `telcca.dave redirected you too many times.` |
# |
Jun 27th 2019, 15:32 |
ricksaccous |
oh cool |
# |
Jun 27th 2019, 15:32 |
neon1024 |
`unauthorizedRedirect`is what I was looking for! |
# |
Jun 27th 2019, 15:32 |
ricksaccous |
@neon1024 using the component or the new plugin? |
# |
Jun 27th 2019, 15:32 |
nudl3ss |
yeah i decided to try with tus-php ... the problem is i dont know exactly how to integrate it. Its giving me headers sent already error, im not sure am I doing the client and the server right... |
# |
Jun 27th 2019, 15:31 |
neon1024 |
Where can I control the Auth failed redirect? I need to customise it based on role |
# |
Jun 27th 2019, 15:24 |
ricksaccous |
at least for this project i don't think i will |
# |
Jun 27th 2019, 15:24 |
ricksaccous |
might need this in the future but doubt it |
# |
Jun 27th 2019, 15:23 |
ricksaccous |
interesting |
# |
Jun 27th 2019, 15:23 |
ricksaccous |
ah cool i found it https://github.com/ankitpokhrel/tus-php |
# |
Jun 27th 2019, 15:22 |
jeremyharris |
tus is the way to go, it’s a protocol for resumable uploads |
# |
Jun 27th 2019, 15:17 |
ricksaccous |
also i found this http://www.resumablejs.com/ |
# |
Jun 27th 2019, 15:17 |
ricksaccous |
@nudl3ss what is tus-php? |
# |
Jun 27th 2019, 15:14 |
nudl3ss |
Hello there, I am building video uploading system and I have a little problem. I want to make resumable upload feature should internet connectivity drop or browser crash. I was looking tus-php but I couldn't integrate it right. Is anyone know something how can this resumable feature to make it work? Thank you! |
# |
Jun 27th 2019, 14:40 |
neon1024 |
Wasn’t sure that it was out of beta yet |
# |
Jun 27th 2019, 14:40 |
neon1024 |
I’ll take a look |