impossible. So I propably have to use something else.
I want to provide a editor for forum posts, where you can upload
images in background. I will try SWFUpload or the iframe, as this
would be the easiest way but also the ugliest.
Another thing: How would you manage the uploaded images? The problem
is, while editing a post, I cannot associate the images with the post
since there is no post id at this point. My idea was as follows: I
save all images in the database (only the titel, not the image file
itself) together with their id and the id of the submitting user. Only
when the post is saved, the controller looks in the images table for
images subitted by the loggedin user but without any association to an
existing post (empty post_id) and associates them with the post
(post_id= last isert id of post). This means, that when you quit
editing a post the images will be shown again, when you add a post at
a later point.
I couldn't find a better solution. What do you think?
Donnerbeil
On Mar 4, 10:05 am, martinp <he...@martinpetts.com> wrote:
> This might be of interest:http://www.zurb.com/playground/ajax_upload
>
> On Mar 4, 7:12 am, WebRenovator <ngev...@gmail.com> wrote:
>
> > My apologies. I was using SWFUploader to do the multiple file uploads.
>
> > On Mar 3, 7:54 pm, Miles J <mileswjohn...@gmail.com> wrote:
>
> > > @WebRenovator - Its impossible to upload files through XMLHttpRequest
> > > like Andy said, im not sure what you think you are referring to.
>
> > > On Mar 3, 7:33 am, Andy Dirnberger <andy.dirnber...@gmail.com> wrote:
>
> > > > XMLHttpRequest cannot upload files. The two ways to give the
> > > > appearance of Ajax are with Flash (e.g., Uploadify, SWFUpload, etc.)
> > > > and with an iframe.
>
> > > > Either way, only the data from $_POST ends up in $this->data. To
> > > > access any uploaded files, you need to use $_FILES.
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment