Fraz Anjum
Fraz Anjum

Reputation: 151

Image not updated with Meioupload

I just recently started using MeioUpload 2.0 with cakephp 1.3. Ive configured the behaviour correctly with my model 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.

Upvotes: 0

Views: 334

Answers (1)

Fraz Anjum
Fraz Anjum

Reputation: 151

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'));

Upvotes: 0

Related Questions