Reading your link I noticed

<quote>
On a successful upload, the $data variable will be a populated array
with the values for the uploaded files filesize, name, extension, mime
group, destination path, upload time and width/height (if an image).
You can use this data to output text on the frontend, or save data to
a database.
</quote>

So, will $data also contain the contents of the File being uploaded,
so I can start parsing it. Sorry if I am being dense here.

On Nov 9, 3:09 pm, Miles J <[email protected]> wrote:
> You cannot do that if you do theuploadmodel behavior, but you can
> manually do it with theuploadcomponent.
>
> On Nov 9, 2:31 pm, Ashu <[email protected]> wrote:
>
>
>
> > Miles thanks for the link.
>
> > Will I be able touploada File(Bookmarks.xml) and parse the data as
> > "Title","Url", from the file before I canuploadmy Bookmarks Model.
>
> > On Nov 9, 9:34 am, Miles J <[email protected]> wrote:
>
> > > My uploader plugin allows you to attach uploads to a model, so its
> > > automatically done through a behavior.
>
> > >http://www.milesj.me/resources/script/uploader-plugin#Attaching-Files...
>
> > > On Nov 9, 9:03 am, Ashu <[email protected]> wrote:
>
> > > > Hello guys,
>
> > > > I have a model for Bookmarks, that a user can add/edit/delete from the
> > > > web UI. Now, I want to add the functionality to be able touploada
> > > > file(bookmarks from FF, Chrome) that is in html format. I have see a
> > > > couple of implementations/examples online for uploading a file.
>
> > > > In my case, I would like toupload, parse and then populate my
> > > > existing Bookmark model. What do you guys suggest ? Create a new
> > > >uploadmodel, or ..... i am looking for suggestion ....
>
> > > > Thanks

--

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


Reply via email to