开发者

Image not updated with Meioupload

开发者 https://www.devze.com 2023-04-12 10:13 出处:网络
I just recently started using MeioUpload 2.0 with cakephp 1.3. Ive configured the behaviour correctly with my model 开发者_JS百科and im able to upload images with my model correctly.

I just recently started using MeioUpload 2.0 with cakephp 1.3. Ive configured the behaviour correctly with my model 开发者_JS百科and im able to upload images with my model correctly.

But when i try to edit the same model and change the picture to another one, the picture is not uploading and i'm getting the validation error of "Invalid file type".

Please anyone can guide me where i'm doing something wrong.


The issue is resolved. The problem was on my edit form. It didn't have a type property set to file. e.g. echo $this->Form->create('User',array('action'=>'edit','class'=>'main_form','type' => 'file'));

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号