Log message #4181901

# At Username Text
# Apr 3rd 2019, 09:15 challgren https://github.com/thephpleague/flysystem/blob/master/src/Util/MimeType.php#L218 fails and then calls the detectByFileExtension
# Apr 3rd 2019, 09:14 challgren It does https://github.com/thephpleague/flysystem/blob/master/src/Util/MimeType.php#L202:28
# Apr 3rd 2019, 09:10 neon1024 Although that won’t have any impact
# Apr 3rd 2019, 09:10 neon1024 It will be
# Apr 3rd 2019, 09:09 challgren It tries to guess it but I think it's working on the temp name
# Apr 3rd 2019, 09:09 challgren Set one when using awss3adapter
# Apr 3rd 2019, 09:09 neon1024 I used the file info php extension
# Apr 3rd 2019, 09:09 neon1024 Set one? Or do you mean read the mime type from the uploaded file?
# Apr 3rd 2019, 09:08 challgren Any have an idea how to set a mine type when using foc/upload?
# Apr 3rd 2019, 09:06 neon1024 It sure does!
# Apr 3rd 2019, 09:05 birdy247 @neon1024 app.php gets loaded in bootstrap.php
# Apr 3rd 2019, 09:05 challgren I don't think any really
# Apr 3rd 2019, 09:01 neon1024 All I can think is the obvious app.default.php to app.php thing, and that app.php will be config will be consumed sooner
# Apr 3rd 2019, 09:00 neon1024 Stupid question, but what are the differences between setting something in app.php and using Configure::write() in say bootstrap?
# Apr 3rd 2019, 08:58 birdy247 I managed this on my home computer, but cant get this working on the work computers
# Apr 3rd 2019, 08:57 birdy247 I am trying to connect to my cakebox with SFTP
# Apr 3rd 2019, 08:57 birdy247 @bravo-kernel just the man :slightly_smiling_face:
# Apr 3rd 2019, 08:43 challgren snake-venom I think you would do something along the following lines $response = $this->response->withStatus(401); $this->setResponse($response); $this->set(‘message’, ‘bad message’); $this->set(‘_serialize’, [‘message’]);
# Apr 3rd 2019, 08:28 challgren snake-venom you could throw an exception with a custom message. Im not 100% sure the correct way to do it.
# Apr 3rd 2019, 08:27 liaogz82 check with you guys, are there phpspec support for cakephp?
# Apr 3rd 2019, 08:25 snake-venom like status code and message in string
# Apr 3rd 2019, 08:24 snake-venom yes,, agree, but cant we send json with this header in anyway ?
# Apr 3rd 2019, 08:24 challgren In your controller function
# Apr 3rd 2019, 08:24 challgren Ohh I dont know zapier but `return $this->response->withStatus(401);` would return a 401 status
# Apr 3rd 2019, 08:24 birdy247 but cant get php storm to connect to the box via FTP
# Apr 3rd 2019, 08:23 birdy247 On the one I got it working, I think I used FTP
# Apr 3rd 2019, 08:23 birdy247 I did get it working on 1 computer, but not any others
# Apr 3rd 2019, 08:23 snake-venom <challgren> in zapier api i want to tell to zapier that my status code 401, 403, 200 or etc .. is this not a right way to do this ?
# Apr 3rd 2019, 08:23 birdy247 but I cant get it working
# Apr 3rd 2019, 08:23 birdy247 @dereuromark we use phpstorm and like to run test from that
# Apr 3rd 2019, 08:22 challgren HTTP Status messages are predefined
# Apr 3rd 2019, 08:22 snake-venom like message etc ?
# Apr 3rd 2019, 08:21 snake-venom can we send json with this $response = $this->response->withStatus(401); response using any way ?
# Apr 3rd 2019, 08:20 dereuromark me
# Apr 3rd 2019, 08:19 birdy247 is anyone using cakebox for development?
# Apr 3rd 2019, 08:19 birdy247 Mornin
# Apr 3rd 2019, 07:49 neon1024 Morning all :wave:
# Apr 3rd 2019, 06:48 roel Hello everyone, Currently I am using the Translate Behavior to save translations for my entities. When ever I save an entity which has no translations (yet), it will save that record with a `NULL` value in my "default" table and it will set the actual value in the translationsTable. I would like the value to be stored in the "default" table and only the translations in the translations table. Thanks in advance.
# Apr 3rd 2019, 06:32 conehead It is the tool I used: https://github.com/cakephp/upgrade
# Apr 3rd 2019, 06:30 dereuromark use my upgrade tool. it contains also vital tasks like skeleton.
# Apr 3rd 2019, 06:24 conehead Well I guess that won't be the only problem ;)