Log message #4191119

# At Username Text
# Jun 27th 2019, 18:10 ricksaccous basically these will plop out a list and users can select these permissions
# Jun 27th 2019, 18:10 ricksaccous so these are kind of how i organized my permissions, i'm using the authorize plugin and one request policy, is this a horrible way to do it?
# Jun 27th 2019, 18:09 ricksaccous Permissions
# Jun 27th 2019, 16:34 jeremyharris that is the same error :slightly_smiling_face: just without header errors. I think the code you posted above is fine
# Jun 27th 2019, 16:32 nudl3ss the code that i speak is in the beginnig of the action upload and verify where is defined new $client
# Jun 27th 2019, 16:32 nudl3ss And now I dont know, i think i didnt change anything is giving me this err
# 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