Closed azrulharis closed 5 years ago
look at the examples in the documentation. https://cakephp-upload.readthedocs.io/en/latest/examples.html. you can override the default fields also referenced from here http://josediazgonzalez.com/2015/12/05/uploading-files-and-images/.
Thanks @sdevore
By replace type to mime field, it working
public $actsAs = array(
'Upload.Upload' => array(
'attachment' => array(
'fields' => array(
'dir' => 'dir',
'type' => 'mime'
)
)
)
);
Thanks again
Hi,
I have sql column name 'type' tinyint to store some information, but the value being overwritten to store Mime Type (application/pdf, image/jpg etc).
Any idea to keep the original value?
Thanks in advance