# |
Aug 31st 2019, 09:53 |
COOurb |
guys, I wanna use files(images) as part of entity. Is there any plugin for patching entity with "uploaded files" or have I write setter/getter for this case? |
# |
Aug 31st 2019, 09:47 |
mrfeedback |
how can I duplicate an entry without mapping each field by hand? i tried ``` $collection = $this->find(); $n_collection = new Collection; $n_collection = $collection; $n_collection->id=null; ``` but it always get updated instead of creating a new one |
# |
Aug 31st 2019, 03:19 |
risingitde |
but it works fine with just one |
# |
Aug 31st 2019, 03:19 |
risingitde |
When I attempt to upload an image and audio in two seperate upload fields, with the Upload.Upload['audio','album_art] bit I get CSRF token mismatch. |
# |
Aug 31st 2019, 03:04 |
risingitde |
Uploaded file: https://uploads.kiwiirc.com/files/0bf3b331f3a91e5a99b256ff3dd6d426/image.png |
# |
Aug 31st 2019, 03:04 |
risingitde |
if i only list one feild in the plugin array in my Model, it works for one feild or the other, but if I try to add both feilds it throws the error |
# |
Aug 31st 2019, 02:48 |
risingitde |
What might be the issue? |
# |
Aug 31st 2019, 02:48 |
risingitde |
Uploaded file: https://uploads.kiwiirc.com/files/ab4a5e221e53639509b46c98c9a2effe/image.png |
# |
Aug 31st 2019, 02:48 |
risingitde |
when I submit I get this error |
# |
Aug 31st 2019, 02:47 |
risingitde |
http://josediazgonzalez.com/2015/12/05/uploading-files-and-images/ |
# |
Aug 31st 2019, 02:47 |
risingitde |
I'm using this upload plugin |
# |
Aug 31st 2019, 02:47 |
risingitde |
This is my form for my Tracks add page |
# |
Aug 31st 2019, 02:47 |
risingitde |
Uploaded file: https://uploads.kiwiirc.com/files/30e2b24376d86826492dcff8503740a6/image.png |
# |
Aug 30th 2019, 23:41 |
entry_lvl_dev |
thanks dereuromark |
# |
Aug 30th 2019, 23:41 |
entry_lvl_dev |
ok i found it |
# |
Aug 30th 2019, 23:40 |
entry_lvl_dev |
where would i find that? |
# |
Aug 30th 2019, 23:39 |
entry_lvl_dev |
this then must be a legacy cakephp site that i am working on |
# |
Aug 30th 2019, 23:39 |
dereuromark |
usually people use cake3 these days |
# |
Aug 30th 2019, 23:39 |
dereuromark |
there it is still Console/cake as documented. |
# |
Aug 30th 2019, 23:39 |
dereuromark |
why cake2? |
# |
Aug 30th 2019, 23:38 |
entry_lvl_dev |
im new to cakephp, im trying to run the cakephp server to test the site but i dont see a bin/cake ... i think i may have this site that i have has missing folder structure.. where extactly should the bin/cake file be? im using cakephp 2.9.5 |
# |
Aug 30th 2019, 23:35 |
entry_lvl_dev |
hello |
# |
Aug 30th 2019, 21:38 |
kiwi_yes |
hi all |
# |
Aug 30th 2019, 21:37 |
kiwi_89 |
Hello all |
# |
Aug 30th 2019, 21:03 |
noel |
Got it.. option + command + e... Apple, think different :man-facepalming: |
# |
Aug 30th 2019, 21:00 |
noel |
When I change my styles.css safari doesn't pick up the changes, even with a refresh? |
# |
Aug 30th 2019, 19:35 |
risingitde |
not select multiple files in one dialog, 2 seperate file upload feilds in one upload |
# |
Aug 30th 2019, 19:35 |
risingitde |
can anybody tell me how I'd upload 2 files simutaneously? |
# |
Aug 30th 2019, 19:14 |
ricksaccous |
no i think that's been consistent, it's been like that => requirePresence('field', true|false|callback, message) for a while |
# |
Aug 30th 2019, 19:09 |
itmpls |
is a callback as a param to . requirePresence('field', [here]) only in >= 3.8? |
# |
Aug 30th 2019, 19:00 |
joey.mukherjee |
In Traits/PasswordManagementTrait.php under cakedc/users/src/Controller, there is a line that has: $redirect = Configure::read('Users.Profile.route'); However, it is not using my value, it is using the PlugIns value |
# |
Aug 30th 2019, 18:59 |
joey.mukherjee |
I am trying to use the CakeDC/Users plugin and specifically, the changePassword routine. I have it all working, but when the password change is successful, it wants to go to back to my /profile" page instead of what I have in config/users.php under Users.Profile.route. Any ideas? |
# |
Aug 30th 2019, 18:47 |
risingitde |
I am confused |
# |
Aug 30th 2019, 18:47 |
risingitde |
is this how I would do it? |
# |
Aug 30th 2019, 18:46 |
risingitde |
https://pastebin.com/U8z6nKvB |
# |
Aug 30th 2019, 18:46 |
risingitde |
I have one controller set up where I can upload a file and store the path in the database, but I want to copy that model, controller, etc and upload 2 files, one image and one audio |
# |
Aug 30th 2019, 18:11 |
maymeow |
@admad how to make it match ? |
# |
Aug 30th 2019, 18:09 |
maymeow |
@noel nope i didn'g |
# |
Aug 30th 2019, 17:33 |
mrfeedback |
but it always get updated instead of creating a new one |
# |
Aug 30th 2019, 17:32 |
mrfeedback |
how can I duplicate an entry without mapping each field by hand? i tried ``` $collection = $this->find(); $n_collection = new Collection; $n_collection = $collection; |
# |
Aug 30th 2019, 17:01 |
noel |
Found it... had the wrong path for the plugin in composer.json |