Hi,

I have the same issue. I found that its using different path for
uploading file.

For stopping details to database just first upload the file and then
insert or update record in database.

If you can provide the source code it would be better to diagnose the
problem.

Regards,
Anurag Pal

On Aug 11, 1:06 pm, leafchild <leafchild.b...@gmail.com> wrote:
> The uploaded img directory permission is set to 777 and just in case I
> even changed webroot permission to 777
> but I'm still seeing  same warning message. Where else I need to
> check?
>
> Also how can I stop update with entire file data to database?
>
> after trying to upload file debug show:
> ==========================================
> [id] =>1
> [uploadfile] => Array
>                (
>                    [name] => IMG_0801.JPG
>                    [type] => image/jpeg
>                    [tmp_name] => /tmp/phpbo9DjW
>                    [error] => 0
>                    [size] => 404887
>                )
> [desc] =>
> ...
> ===========================================
>
> uploadfile field needs only file name but looking at sql trying to
> update
> filed with file array information.
>
> On Aug 7, 6:24 pm, brian <bally.z...@gmail.com> wrote:
>
> > Check the permissions for the directory. The webserver has to have
> > write access to the dir.
>
> > On Fri, Aug 7, 2009 at 4:02 PM,leafchild<leafchild.b...@gmail.com> wrote:
>
> > > I'm trying to make this plugin(http://www.milesj.me/resources/script/
> > > uploader-plugin) works.
>
> > > However, after I install I'm getting an error - Warning (2): mkdir()
> > > [function.mkdir]: Permission denied [CORE/cake/libs/folder.php, line
> > > 466]
> > > Actually I tried another behavior to upload file and got same error.
> > > Do  I need to do some kind of server setting? I'm using MT(dv)
>
> > > Also after submit to upload file I'm getting an SQL error because data
> > > need to be one but it try to update entire file data:
>
> > > ==========================================
> > > [id] =>1
> > > [uploadfile] => Array
> > >               (
> > >                   [name] => IMG_0801.JPG
> > >                   [type] => image/jpeg
> > >                   [tmp_name] => /tmp/phpbo9DjW
> > >                   [error] => 0
> > >                   [size] => 404887
> > >               )
> > > [desc] =>
> > > ...
> > > ===========================================
> > > "uplodefile" 's data is not array just [NAME] of file.
>
> > > How can I stop doing it? I can't use "$this->Landing->save($this-
> > >>data)" if I have file uploading?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to