Re: Multiple file upload

2012-09-29 Thread Jonatan
Hi David,

Can you upload some examples of you approach to this?

Thanks!

Em sexta-feira, 26 de agosto de 2011 08h13min02s UTC-3, David Cole escreveu:
>
> I would recommend using SWFUpload and setting up an attachment 
> controller and behavior. This way you can have swfupload send the 
> files to a function in your controller. Then use the behavior to 
> create HABTM associations on the fly to your other models. It's what 
> I've done and it works great. If you need more details let me know, I 
> can send you the code. 
>
> On Aug 23, 9:37 pm, 8vius  wrote: 
> > I'm really struggling to find a solution for what I want to do. I want 
> > to be able to upload several image files simultaneously but I don't 
> > want to have several file boxes but just one where the user can select 
> > several files to upload, what is the best plugin and solution on the 
> > frontend side to do this?

-- 
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
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.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Multiple file upload

2011-09-06 Thread 8vius
I would like the details of this, it's good to have another approach
in case

On Aug 26, 7:13 am, David Cole  wrote:
> I would recommend using SWFUpload and setting up an attachment
> controller and behavior. This way you can have swfupload send the
> files to a function in your controller. Then use the behavior to
> create HABTM associations on the fly to your other models. It's what
> I've done and it works great. If you need more details let me know, I
> can send you the code.
>
> On Aug 23, 9:37 pm,8vius wrote:
>
>
>
>
>
>
>
> > I'm really struggling to find a solution for what I want to do. I want
> > to be able to upload several image files simultaneously but I don't
> > want to have several file boxes but just one where the user can select
> > several files to upload, what is the best plugin and solution on the
> > frontend side to do this?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Multiple file upload

2011-08-26 Thread David Cole
I would recommend using SWFUpload and setting up an attachment
controller and behavior. This way you can have swfupload send the
files to a function in your controller. Then use the behavior to
create HABTM associations on the fly to your other models. It's what
I've done and it works great. If you need more details let me know, I
can send you the code.

On Aug 23, 9:37 pm, 8vius  wrote:
> I'm really struggling to find a solution for what I want to do. I want
> to be able to upload several image files simultaneously but I don't
> want to have several file boxes but just one where the user can select
> several files to upload, what is the best plugin and solution on the
> frontend side to do this?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Multiple file upload

2011-08-25 Thread Sam Sherlock
Not really to sure I have not fiddled with the setup of media within my app
for a while.
I have the basics working of what I want from media now, planning to revisit
later.
transfer is working for me.

for instance News hasMany Image
>

from news controller call find on Image (or attachments)
using debugkit easily see the results and sql - to see that your getting
what you want

I have not tried with multiple uploads (other than the most simple) just
searched for blog posts on the topic (with and without cake)
I have found various other frontend options I would prefer

 - S




On 24 August 2011 04:18, 8vius  wrote:

> Thanks Sam, this seems to be simple enough and that it will do the
> trick, now how would I go about getting all the files I just uploaded
> because the thing is these are not files that are independent they
> will be linked to another model, for instance News hasMany Image
>
> On Aug 23, 10:47 pm, Sam Sherlock  wrote:
> > http://pixelcone.com/tutorial/ajax-file-upload-using-jquery-and-cakep...
> >
> >  - S
> >
> > On 24 August 2011 03:37, 8vius  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > I'm really struggling to find a solution for what I want to do. I want
> > > to be able to upload several image files simultaneously but I don't
> > > want to have several file boxes but just one where the user can select
> > > several files to upload, what is the best plugin and solution on the
> > > frontend side to do this?
> >
> > > --
> > > Our newest site for the community: CakePHP Video Tutorials
> > >http://tv.cakephp.org
> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > > others with their CakePHP related questions.
> >
> > > To unsubscribe from this group, send email to
> > > cake-php+unsubscr...@googlegroups.com For more options, visit this
> group
> > > athttp://groups.google.com/group/cake-php
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> 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
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Multiple file upload

2011-08-23 Thread 8vius
Thanks Sam, this seems to be simple enough and that it will do the
trick, now how would I go about getting all the files I just uploaded
because the thing is these are not files that are independent they
will be linked to another model, for instance News hasMany Image

On Aug 23, 10:47 pm, Sam Sherlock  wrote:
> http://pixelcone.com/tutorial/ajax-file-upload-using-jquery-and-cakep...
>
>  - S
>
> On 24 August 2011 03:37, 8vius  wrote:
>
>
>
>
>
>
>
> > I'm really struggling to find a solution for what I want to do. I want
> > to be able to upload several image files simultaneously but I don't
> > want to have several file boxes but just one where the user can select
> > several files to upload, what is the best plugin and solution on the
> > frontend side to do this?
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group
> > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Multiple file upload

2011-08-23 Thread Sam Sherlock
http://pixelcone.com/tutorial/ajax-file-upload-using-jquery-and-cakephp-media-plugin/

 - S




On 24 August 2011 03:37, 8vius  wrote:

> I'm really struggling to find a solution for what I want to do. I want
> to be able to upload several image files simultaneously but I don't
> want to have several file boxes but just one where the user can select
> several files to upload, what is the best plugin and solution on the
> frontend side to do this?
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> 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
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Multiple file upload

2011-08-23 Thread 8vius
I'm really struggling to find a solution for what I want to do. I want
to be able to upload several image files simultaneously but I don't
want to have several file boxes but just one where the user can select
several files to upload, what is the best plugin and solution on the
frontend side to do this?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: multiple file upload in php

2011-04-01 Thread Chris
I'm using the latest stable version, 1.3.8. I'm just going to use the
stable 2.1.4 version of uploadify to make sure when we're figuring
this out we don't have too many problems :P (I'm tired of trying to
make all these different uploaders I've found work >_>)

((btw, I want to save these files to the disk not to the db if that
makes a difference.))

On Apr 1, 6:01 am, Ravi Verma  wrote:
> Hi Rishab,
>
> It's very easy to use and follows all the cakephp URL credentials also. I
> have implemented it many times with the same url [Just like you have
> mentioned]. Please let me know what version of cake you are using. Let's
> debug it.
>
>
>
>
>
>
>
>
>
> On Fri, Apr 1, 2011 at 9:22 AM, Chris  wrote:
> > I would like to know how you would setup uploadify for cake. Could you
> > please post instructions?
>
> > On Mar 31, 3:49 am, Ravi  wrote:
> > > Hi Rishab,
>
> > > You can use Uploadify (http://www.uploadify.com/). This is a free
> > > flash uploading utility for PHP.
>
> > > And also it is quite easy to implement your own multiple file
> > > uploading functionality. Do let me know if you need instructions to
> > > implement your own functionality.
>
> > > Thanks,
> > > Ravi Verma
>
> > > On Mar 31, 12:46 pm, Rishab Jain  wrote:
>
> > > > Hi,
>
> > > > Does anybody know of a good multiple file upload in cakephp (or even
> > php for
> > > > that matter). I'm not looking for many input tags for upload, but for
> > an
> > > > interface where I can upload many files in one go.
>
> > > > And it should be a freeware.
>
> > > > regards,
> > > > Rishab
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group
> > athttp://groups.google.com/group/cake-php
>
> --
> Thanks & Regards
> =
> Ravi Verma
> Software Engineer

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: multiple file upload in php

2011-04-01 Thread Ravi Verma
Hi Rishab,

It's very easy to use and follows all the cakephp URL credentials also. I
have implemented it many times with the same url [Just like you have
mentioned]. Please let me know what version of cake you are using. Let's
debug it.



On Fri, Apr 1, 2011 at 9:22 AM, Chris  wrote:

> I would like to know how you would setup uploadify for cake. Could you
> please post instructions?
>
> On Mar 31, 3:49 am, Ravi  wrote:
> > Hi Rishab,
> >
> > You can use Uploadify (http://www.uploadify.com/). This is a free
> > flash uploading utility for PHP.
> >
> > And also it is quite easy to implement your own multiple file
> > uploading functionality. Do let me know if you need instructions to
> > implement your own functionality.
> >
> > Thanks,
> > Ravi Verma
> >
> > On Mar 31, 12:46 pm, Rishab Jain  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Hi,
> >
> > > Does anybody know of a good multiple file upload in cakephp (or even
> php for
> > > that matter). I'm not looking for many input tags for upload, but for
> an
> > > interface where I can upload many files in one go.
> >
> > > And it should be a freeware.
> >
> > > regards,
> > > Rishab
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> 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
>



-- 
Thanks & Regards
=
Ravi Verma
Software Engineer

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: multiple file upload in php

2011-03-31 Thread Chris
I would like to know how you would setup uploadify for cake. Could you
please post instructions?

On Mar 31, 3:49 am, Ravi  wrote:
> Hi Rishab,
>
> You can use Uploadify (http://www.uploadify.com/). This is a free
> flash uploading utility for PHP.
>
> And also it is quite easy to implement your own multiple file
> uploading functionality. Do let me know if you need instructions to
> implement your own functionality.
>
> Thanks,
> Ravi Verma
>
> On Mar 31, 12:46 pm, Rishab Jain  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > Does anybody know of a good multiple file upload in cakephp (or even php for
> > that matter). I'm not looking for many input tags for upload, but for an
> > interface where I can upload many files in one go.
>
> > And it should be a freeware.
>
> > regards,
> > Rishab

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: multiple file upload in php

2011-03-31 Thread cricket
On Thu, Mar 31, 2011 at 3:34 PM, Rishab Jain  wrote:
> Hi,
>
> This works fine when I created a non-cakephp based setup. However, when I
> try to use it in a cake based setup, it gives me an error. After almost an
> hour of debugging, I saw that the problem lies in,
>
>     $('#file_upload').uploadify({
>   'uploader'  : 'path_to_uploadifyswf/uploadify.swf',
>   'script'    : 'http://dev.mydomain.com/multiupload/',
>   'cancelImg' : 'pathtoimages/cancel.png',
>   'folder'    : 'uploaded_files',
>   'multi'   : true,
>
> Here, when I give the script URL to be of an action of a controller, it
> gives me a 302 Error. However, when I change it to
>   'script'    :
> 'http://dev.mydomain.com/non_cake_based_setup/multiupload.php',
>
> It works then.
>
> Really have no idea about this behaviour. Anybody having any idea here?

Do you have a route for '/multiupload/'? That needs to point to a
controller somehow.

Mine is:
Router::connect(
'/upload',
array('controller' => 'files', 'action' => 'upload')
);

BTW, I'm using Nick Baker's FileUpload plugin and jQuery.MultiFile.
http://www.webtechnick.com/blogs/view/221/CakePHP_File_Upload_Plugin
http://code.google.com/p/jquery-multifile-plugin/

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: multiple file upload in php

2011-03-31 Thread Rishab Jain
Hi,

This works fine when I created a non-cakephp based setup. However, when I
try to use it in a cake based setup, it gives me an error. After almost an
hour of debugging, I saw that the problem lies in,

$('#file_upload').uploadify({
  'uploader'  : 'path_to_uploadifyswf/uploadify.swf',
  'script': 'http://dev.mydomain.com/multiupload/',
  'cancelImg' : 'pathtoimages/cancel.png',
  'folder': 'uploaded_files',
  'multi'   : true,

Here, when I give the script URL to be of an action of a controller, it
gives me a 302 Error. However, when I change it to
  'script': '
http://dev.mydomain.com/non_cake_based_setup/multiupload.php',

It works then.

Really have no idea about this behaviour. Anybody having any idea here?

regards,
Rishab



On Thu, Mar 31, 2011 at 1:19 PM, Ravi  wrote:

> Hi Rishab,
>
> You can use Uploadify (http://www.uploadify.com/). This is a free
> flash uploading utility for PHP.
>
> And also it is quite easy to implement your own multiple file
> uploading functionality. Do let me know if you need instructions to
> implement your own functionality.
>
> Thanks,
> Ravi Verma
>
> On Mar 31, 12:46 pm, Rishab Jain  wrote:
> > Hi,
> >
> > Does anybody know of a good multiple file upload in cakephp (or even php
> for
> > that matter). I'm not looking for many input tags for upload, but for an
> > interface where I can upload many files in one go.
> >
> > And it should be a freeware.
> >
> > regards,
> > Rishab
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> 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
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: multiple file upload in php

2011-03-31 Thread Sathia S
> Does anybody know of a good multiple file upload in cakephp (or even php
> for that matter). I'm not looking for many input tags for upload, but for an
> interface where I can upload many files in one go.
>
> And it should be a freeware.
>

This is multiple file upload in jquery


> http://aquantum-demo.appspot.com/file-upload
>


-- 
Regards

sathia
http://www.sathia27.wordpress.com

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: multiple file upload in php

2011-03-31 Thread Rishab Jain
Thanks Ravi. It worked. And implementing it was pretty easy as well.

regards,
Rishab

On Thu, Mar 31, 2011 at 1:19 PM, Ravi  wrote:

> Hi Rishab,
>
> You can use Uploadify (http://www.uploadify.com/). This is a free
> flash uploading utility for PHP.
>
> And also it is quite easy to implement your own multiple file
> uploading functionality. Do let me know if you need instructions to
> implement your own functionality.
>
> Thanks,
> Ravi Verma
>
> On Mar 31, 12:46 pm, Rishab Jain  wrote:
> > Hi,
> >
> > Does anybody know of a good multiple file upload in cakephp (or even php
> for
> > that matter). I'm not looking for many input tags for upload, but for an
> > interface where I can upload many files in one go.
> >
> > And it should be a freeware.
> >
> > regards,
> > Rishab
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> 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
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: multiple file upload in php

2011-03-31 Thread Ravi
Hi Rishab,

You can use Uploadify (http://www.uploadify.com/). This is a free
flash uploading utility for PHP.

And also it is quite easy to implement your own multiple file
uploading functionality. Do let me know if you need instructions to
implement your own functionality.

Thanks,
Ravi Verma

On Mar 31, 12:46 pm, Rishab Jain  wrote:
> Hi,
>
> Does anybody know of a good multiple file upload in cakephp (or even php for
> that matter). I'm not looking for many input tags for upload, but for an
> interface where I can upload many files in one go.
>
> And it should be a freeware.
>
> regards,
> Rishab

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


multiple file upload in php

2011-03-31 Thread Rishab Jain
Hi,

Does anybody know of a good multiple file upload in cakephp (or even php for
that matter). I'm not looking for many input tags for upload, but for an
interface where I can upload many files in one go.

And it should be a freeware.

regards,
Rishab

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: multiple file upload tutorial

2010-02-27 Thread WebRenovator
By multiple file do you mean uploading multiple files to the album?
I've used my own custom solution using swfUpload to upload various
files to the db to display them in an album. Although SWFUpload will
require some javascript knowledge, its a free solution that might fit
your needs.

On Feb 26, 2:53 pm, WebbedIT  wrote:
> From the above I had a few requests to share my implementation, so I
> have just written a blog post about how I use TinyMCE and the Image/
> File Manager plugins.
>
> http://webbedit.co.uk/blog_posts/view/tinymce-cakephp-mcimagemanager-...
>
> HTH
>
> Paul

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: multiple file upload tutorial

2010-02-26 Thread WebbedIT
>From the above I had a few requests to share my implementation, so I
have just written a blog post about how I use TinyMCE and the Image/
File Manager plugins.

http://webbedit.co.uk/blog_posts/view/tinymce-cakephp-mcimagemanager-mcfilemanager

HTH

Paul

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: multiple file upload tutorial

2010-02-25 Thread WebbedIT
I'm using MCImageManager from MoxieCode. I haven;t tried any of the
free solutions as I demoed this and it seemed so professional, plus I
was using TinyMCE as my WYSIWYG editor and it provides seamless
integration and can be patched into your Auth component to specify
different root folders for different users etc.

It's up to you if it's worth $47 or not, but it saved me a lot of work
and my clients love it.

If you do demo it and want to go ahead with using it I will gladly
send you info on how I got it working with CakePHP.

HTH

Paul.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


multiple file upload tutorial

2010-02-25 Thread Media Affect
I'm having errors getting any of the tutorials or plugins I have
reviewed for cake 1.26 to work. Does anyone know of a good multiple
file plugin or behavior tutorial? I'm trying to build a photo gallery
where the images names are saved to the database and the admin uploads
the file to a specific location.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Multiple file Upload through related model (CakePHP bug?)

2010-02-24 Thread Lucca Mordente
Hello!

I'm having problems saving multiple files through related model.

I have the following structure:
  Document hasMany Item
  Item belongsTo Document
  Item belongsTo File

File is a generic model I created to ease attaching a file to a model.

My Document form is like following:
  ...
  $k=0;
  echo $form->input('Item.'.$k.'.title');
  echo $form->input('Item.'.$k.'.File.filename',
array('type'=>'file'));

After submiting the form, I immediatelly caught debug($this->data),
that outputs:
  ...
[Item] => Array
(
[0] => Array
(
[title] =>
[File] => Array
(
[name] => Array
(
[filename] =>
)
[type] => Array
(
[filename] =>
)
[tmp_name] => Array
(
[filename] =>
)
[error] => Array
(
[filename] => 4
)
[size] => Array
(
[filename] => 0
)
)
)
)
every File field receives a strange array.

for the following:
  Document HASONE Item
  Item belongsTo Document
  Item belongsTo File
and:
  echo $form->input('Item.title');
  echo $form->input('Item.File.filename', array('type'=>'file'));
everything goes like expected.
  ...
[Item] => Array
(
 [title] =>
 [File] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
)

Suggestions?
Thank you!

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Multiple file Upload through related model (CakePHP bug?)

2010-02-24 Thread Lucca Mordente
Hello!

I'm having problems saving multiple files through related model.

I have the following structure:


  Document hasMany Item
  Item belongsTo Document
  Item belongsTo File

File is a generic model I created to ease attaching a file to a model.

My form is like following:
  $k=0;
  echo $form->input('Document.'.$k.'.title');
  echo $form->input('Document.'.$k.'.File.filename',
array('type'=>'file'));

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Simple Multiple File upload

2009-11-17 Thread fabio
I also suggest you this component that I've succesfully tried... by
the way it has recently been updated to handle multiple uploads:

http://www.webtechnick.com/blogs/view/221/CakePHP_File_Upload_Plugin

On 17 Nov, 09:21, Jeremy Burns  wrote:
> Try 
> this:http://bakery.cakephp.org/articles/view/file-upload-component-w-autom...

--

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-...@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=.




Re: Simple Multiple File upload

2009-11-17 Thread David Roda
I have found SwfUpload to be by far the best way to upload files, including
multi-file upload.  It requires some configuration but it is very powerful
and is well worth it to become comfortable with.
http://demo.swfupload.org/v220/index.htm

On Tue, Nov 17, 2009 at 3:21 AM, Jeremy Burns  wrote:

> Try this:
> http://bakery.cakephp.org/articles/view/file-upload-component-w-automagic-model-optional
>
> Jeremy Burns
> jeremybu...@me.com
>
> On 17 Nov 2009, at 08:18, appel268576 wrote:
>
> > Hi Cake Community.
> >
> > I am busy developing an application and looking towards a solution /
> > plugin that will help me upload files / images etc.
> >
> > I have been banging my head searching for a decent tutorial that is
> > well documented, is there anything that you can suggest and one that
> > you have used before?
> >
> > Regards
> >
> > --
> >
> > You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> > To post to this group, send email to cake-...@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=.
> >
> >
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@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=.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-...@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=.




Re: Simple Multiple File upload

2009-11-17 Thread Jeremy Burns
Try this: 
http://bakery.cakephp.org/articles/view/file-upload-component-w-automagic-model-optional

Jeremy Burns
jeremybu...@me.com

On 17 Nov 2009, at 08:18, appel268576 wrote:

> Hi Cake Community.
> 
> I am busy developing an application and looking towards a solution /
> plugin that will help me upload files / images etc.
> 
> I have been banging my head searching for a decent tutorial that is
> well documented, is there anything that you can suggest and one that
> you have used before?
> 
> Regards
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-...@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=.
> 
> 

--

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-...@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=.




Simple Multiple File upload

2009-11-17 Thread appel268576
Hi Cake Community.

I am busy developing an application and looking towards a solution /
plugin that will help me upload files / images etc.

I have been banging my head searching for a decent tutorial that is
well documented, is there anything that you can suggest and one that
you have used before?

Regards

--

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-...@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=.




Re: Multiple file upload ?

2007-03-05 Thread drayen

I plan to play with http://swfupload.mammon.se/ today, i have a few
further requirements (like adding meta data to the uploaded files) but
will let you know how i get on.

There is a short tutorial on one persons implementation of swfupload
on : http://blog.pagebakers.nl/2006/12/19/swfupload-part-ii/

Drayen

On Mar 3, 10:42 pm, "Brad Daily" <[EMAIL PROTECTED]> wrote:
> We do use a similiar uploading process for Director, but it is mostly
> homegrown. The swfupload project looks like a good one, I just didn't
> know about it when we built ours :)
>
> I used a Flash/Rails example I found here[1] as a starting point.
>
> [1]http://blog.vixiom.com/2006/09/08/multiple-file-upload-with-flash-and...
>
> On Mar 3, 4:08 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
>
> > Brad Daily uses something similar in ssp Director which is a cakePHP App.
>
> > its either similar or its the same.
>
> > The director multi - upload works very well.
>
> > On 03/03/07, phirschybar <[EMAIL PROTECTED]> wrote:
>
> > > I'd love to see somebody try this:http://swfupload.mammon.se/
>
> > > Yeah, it's flash and 3rd party but it has a nice multiple upload
> > > feature because it uses flash's native upload dialogue. I plan to try
> > > it out on a project soon.
>
> > > Anybody seen or tried this?
>
> > > On Mar 2, 11:28 am, "Mech7" <[EMAIL PROTECTED]> wrote:
> > > > Is there a explanation or tutorial anywhere which explains how to do
> > > > multiple file uploads and store the name in the database?
>
> > > > I have found this:http://thinkingphp.org/demos/cake-timer/
> > > > but it looks a little complicated and uses a perl script :(


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~--~~~~--~~--~--~---



Re: Multiple file upload ?

2007-03-03 Thread phirschybar

any chance you'd share the component source for use in cake? :)

On Mar 3, 5:42 pm, "Brad Daily" <[EMAIL PROTECTED]> wrote:
> We do use a similiar uploading process for Director, but it is mostly
> homegrown. The swfupload project looks like a good one, I just didn't
> know about it when we built ours :)
>
> I used a Flash/Rails example I found here[1] as a starting point.
>
> [1]http://blog.vixiom.com/2006/09/08/multiple-file-upload-with-flash-and...
>
> On Mar 3, 4:08 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
>
> > Brad Daily uses something similar in ssp Director which is a cakePHP App.
>
> > its either similar or its the same.
>
> > The director multi - upload works very well.
>
> > On 03/03/07, phirschybar <[EMAIL PROTECTED]> wrote:
>
> > > I'd love to see somebody try this:http://swfupload.mammon.se/
>
> > > Yeah, it's flash and 3rd party but it has a nice multiple upload
> > > feature because it uses flash's native upload dialogue. I plan to try
> > > it out on a project soon.
>
> > > Anybody seen or tried this?
>
> > > On Mar 2, 11:28 am, "Mech7" <[EMAIL PROTECTED]> wrote:
> > > > Is there a explanation or tutorial anywhere which explains how to do
> > > > multiple file uploads and store the name in the database?
>
> > > > I have found this:http://thinkingphp.org/demos/cake-timer/
> > > > but it looks a little complicated and uses a perl script :(


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~--~~~~--~~--~--~---



Re: Multiple file upload ?

2007-03-03 Thread Brad Daily

We do use a similiar uploading process for Director, but it is mostly
homegrown. The swfupload project looks like a good one, I just didn't
know about it when we built ours :)

I used a Flash/Rails example I found here[1] as a starting point.

[1] 
http://blog.vixiom.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/

On Mar 3, 4:08 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> Brad Daily uses something similar in ssp Director which is a cakePHP App.
>
> its either similar or its the same.
>
> The director multi - upload works very well.
>
> On 03/03/07, phirschybar <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'd love to see somebody try this:http://swfupload.mammon.se/
>
> > Yeah, it's flash and 3rd party but it has a nice multiple upload
> > feature because it uses flash's native upload dialogue. I plan to try
> > it out on a project soon.
>
> > Anybody seen or tried this?
>
> > On Mar 2, 11:28 am, "Mech7" <[EMAIL PROTECTED]> wrote:
> > > Is there a explanation or tutorial anywhere which explains how to do
> > > multiple file uploads and store the name in the database?
>
> > > I have found this:http://thinkingphp.org/demos/cake-timer/
> > > but it looks a little complicated and uses a perl script :(


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~--~~~~--~~--~--~---



Re: Multiple file upload ?

2007-03-03 Thread Sam Sherlock
SSP Director switching to cake was how I became aware of the project.

On 03/03/07, phirschybar <[EMAIL PROTECTED]> wrote:
>
>
> Wow. That's really cool. I use SSP (the flash component) regularly.
> Had no idea director was running on cake.
>
> There really needs to be a place where Cake apps in the wild are
> featured. I will go ahead and make a page in this group and hopefully
> others will contribute.
>
> Check out the pages section.
>
> On Mar 3, 4:31 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> > as of ssp director 1.0.8 -  (12/27/06)
> >
> >1. [NEW] Director has been ported to the CakePHP framework for more
> >agile, rapid development.
> >
> >
> http://slideshowpro.net/forums/viewtopic.php?id=4http://blog.bradleyboy.com/2007/01/08/distributing-cakephp-apps-handl.
> ..
> >
> > On 03/03/07, phirschybar <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > Are you referring to slide show pro director? thats a cakePHP app?
> >
> > > oh I am looking at this:http://blog.bradleyboy.com/interesting. How
> > > do we know it's cake?
> >
> > > Ben
> >
> > > On Mar 3, 4:08 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> > > > Brad Daily uses something similar in ssp Director which is a cakePHP
> > > App.
> >
> > > > its either similar or its the same.
> >
> > > > The director multi - upload works very well.
> >
> > > > On 03/03/07, phirschybar <[EMAIL PROTECTED]> wrote:
> >
> > > > > I'd love to see somebody try this:http://swfupload.mammon.se/
> >
> > > > > Yeah, it's flash and 3rd party but it has a nice multiple upload
> > > > > feature because it uses flash's native upload dialogue. I plan to
> try
> > > > > it out on a project soon.
> >
> > > > > Anybody seen or tried this?
> >
> > > > > On Mar 2, 11:28 am, "Mech7" <[EMAIL PROTECTED]> wrote:
> > > > > > Is there a explanation or tutorial anywhere which explains how
> to do
> > > > > > multiple file uploads and store the name in the database?
> >
> > > > > > I have found this:http://thinkingphp.org/demos/cake-timer/
> > > > > > but it looks a little complicated and uses a perl script :(
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~--~~~~--~~--~--~---



Re: Multiple file upload ?

2007-03-03 Thread phirschybar

Wow. That's really cool. I use SSP (the flash component) regularly.
Had no idea director was running on cake.

There really needs to be a place where Cake apps in the wild are
featured. I will go ahead and make a page in this group and hopefully
others will contribute.

Check out the pages section.

On Mar 3, 4:31 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> as of ssp director 1.0.8 -  (12/27/06)
>
>1. [NEW] Director has been ported to the CakePHP framework for more
>agile, rapid development.
>
> http://slideshowpro.net/forums/viewtopic.php?id=4http://blog.bradleyboy.com/2007/01/08/distributing-cakephp-apps-handl...
>
> On 03/03/07, phirschybar <[EMAIL PROTECTED]> wrote:
>
>
>
> > Are you referring to slide show pro director? thats a cakePHP app?
>
> > oh I am looking at this:http://blog.bradleyboy.com/interesting. How
> > do we know it's cake?
>
> > Ben
>
> > On Mar 3, 4:08 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> > > Brad Daily uses something similar in ssp Director which is a cakePHP
> > App.
>
> > > its either similar or its the same.
>
> > > The director multi - upload works very well.
>
> > > On 03/03/07, phirschybar <[EMAIL PROTECTED]> wrote:
>
> > > > I'd love to see somebody try this:http://swfupload.mammon.se/
>
> > > > Yeah, it's flash and 3rd party but it has a nice multiple upload
> > > > feature because it uses flash's native upload dialogue. I plan to try
> > > > it out on a project soon.
>
> > > > Anybody seen or tried this?
>
> > > > On Mar 2, 11:28 am, "Mech7" <[EMAIL PROTECTED]> wrote:
> > > > > Is there a explanation or tutorial anywhere which explains how to do
> > > > > multiple file uploads and store the name in the database?
>
> > > > > I have found this:http://thinkingphp.org/demos/cake-timer/
> > > > > but it looks a little complicated and uses a perl script :(


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~--~~~~--~~--~--~---



Re: Multiple file upload ?

2007-03-03 Thread Sam Sherlock
as of ssp director 1.0.8 -  (12/27/06)

   1. [NEW] Director has been ported to the CakePHP framework for more
   agile, rapid development.

http://slideshowpro.net/forums/viewtopic.php?id=4
http://blog.bradleyboy.com/2007/01/08/distributing-cakephp-apps-handling-your-cake-with-care/




On 03/03/07, phirschybar <[EMAIL PROTECTED]> wrote:
>
>
> Are you referring to slide show pro director? thats a cakePHP app?
>
> oh I am looking at this: http://blog.bradleyboy.com/ interesting. How
> do we know it's cake?
>
> Ben
>
> On Mar 3, 4:08 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> > Brad Daily uses something similar in ssp Director which is a cakePHP
> App.
> >
> > its either similar or its the same.
> >
> > The director multi - upload works very well.
> >
> > On 03/03/07, phirschybar <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > I'd love to see somebody try this:http://swfupload.mammon.se/
> >
> > > Yeah, it's flash and 3rd party but it has a nice multiple upload
> > > feature because it uses flash's native upload dialogue. I plan to try
> > > it out on a project soon.
> >
> > > Anybody seen or tried this?
> >
> > > On Mar 2, 11:28 am, "Mech7" <[EMAIL PROTECTED]> wrote:
> > > > Is there a explanation or tutorial anywhere which explains how to do
> > > > multiple file uploads and store the name in the database?
> >
> > > > I have found this:http://thinkingphp.org/demos/cake-timer/
> > > > but it looks a little complicated and uses a perl script :(
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~--~~~~--~~--~--~---



Re: Multiple file upload ?

2007-03-03 Thread phirschybar

Are you referring to slide show pro director? thats a cakePHP app?

oh I am looking at this: http://blog.bradleyboy.com/ interesting. How
do we know it's cake?

Ben

On Mar 3, 4:08 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> Brad Daily uses something similar in ssp Director which is a cakePHP App.
>
> its either similar or its the same.
>
> The director multi - upload works very well.
>
> On 03/03/07, phirschybar <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'd love to see somebody try this:http://swfupload.mammon.se/
>
> > Yeah, it's flash and 3rd party but it has a nice multiple upload
> > feature because it uses flash's native upload dialogue. I plan to try
> > it out on a project soon.
>
> > Anybody seen or tried this?
>
> > On Mar 2, 11:28 am, "Mech7" <[EMAIL PROTECTED]> wrote:
> > > Is there a explanation or tutorial anywhere which explains how to do
> > > multiple file uploads and store the name in the database?
>
> > > I have found this:http://thinkingphp.org/demos/cake-timer/
> > > but it looks a little complicated and uses a perl script :(


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~--~~~~--~~--~--~---



Re: Multiple file upload ?

2007-03-03 Thread Sam Sherlock
Brad Daily uses something similar in ssp Director which is a cakePHP App.

its either similar or its the same.

The director multi - upload works very well.

On 03/03/07, phirschybar <[EMAIL PROTECTED]> wrote:
>
>
> I'd love to see somebody try this: http://swfupload.mammon.se/
>
> Yeah, it's flash and 3rd party but it has a nice multiple upload
> feature because it uses flash's native upload dialogue. I plan to try
> it out on a project soon.
>
> Anybody seen or tried this?
>
> On Mar 2, 11:28 am, "Mech7" <[EMAIL PROTECTED]> wrote:
> > Is there a explanation or tutorial anywhere which explains how to do
> > multiple file uploads and store the name in the database?
> >
> > I have found this:http://thinkingphp.org/demos/cake-timer/
> > but it looks a little complicated and uses a perl script :(
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~--~~~~--~~--~--~---



Re: Multiple file upload ?

2007-03-03 Thread phirschybar

I'd love to see somebody try this: http://swfupload.mammon.se/

Yeah, it's flash and 3rd party but it has a nice multiple upload
feature because it uses flash's native upload dialogue. I plan to try
it out on a project soon.

Anybody seen or tried this?

On Mar 2, 11:28 am, "Mech7" <[EMAIL PROTECTED]> wrote:
> Is there a explanation or tutorial anywhere which explains how to do
> multiple file uploads and store the name in the database?
>
> I have found this:http://thinkingphp.org/demos/cake-timer/
> but it looks a little complicated and uses a perl script :(


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~--~~~~--~~--~--~---



Re: Multiple file upload ?

2007-03-03 Thread francky06l

I have used the cake timer as a base, basically because I wanted to
"monitor" the upload using ajax, that implies eframe and I manage to
made it work using the ajax and cjs helper. Otherwise, as Christian
said, it's simpler using a "classic" way.


On Mar 2, 7:10 pm, "Christian Winther [cwi.dk]" <[EMAIL PROTECTED]>
wrote:
> iF you just need a simple 'plain old multi upload' feature, just do:
> 
>
> And then debug( $this->data['Upload'] );  in your controller show contain an
> array of file info (tmp path ect)
>
> -Original Message-
> From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
>
> Of Mech7
> Sent: 2. marts 2007 17:28
> To: Cake PHP
> Subject: Multiple file upload ?
>
> Is there a explanation or tutorial anywhere which explains how to do
> multiple file uploads and store the name in the database?
>
> I have found this:http://thinkingphp.org/demos/cake-timer/
> but it looks a little complicated and uses a perl script :(


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~--~~~~--~~--~--~---



RE: Multiple file upload ?

2007-03-02 Thread Christian Winther [cwi.dk]

iF you just need a simple 'plain old multi upload' feature, just do:


And then debug( $this->data['Upload'] );  in your controller show contain an
array of file info (tmp path ect)

-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Mech7
Sent: 2. marts 2007 17:28
To: Cake PHP
Subject: Multiple file upload ?


Is there a explanation or tutorial anywhere which explains how to do
multiple file uploads and store the name in the database?

I have found this: http://thinkingphp.org/demos/cake-timer/
but it looks a little complicated and uses a perl script :(




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~--~~~~--~~--~--~---



Multiple file upload ?

2007-03-02 Thread Mech7

Is there a explanation or tutorial anywhere which explains how to do
multiple file uploads and store the name in the database?

I have found this: http://thinkingphp.org/demos/cake-timer/
but it looks a little complicated and uses a perl script :(


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~--~~~~--~~--~--~---



Re: Multiple File upload Flash

2006-09-18 Thread Olivier Percebois-Garve

When you upload a file, this is being stored by php in temp file. You 
can access that temp file with
$_FILES['fieldname']['tmp_name'].
In cake you can use $this->data['Modelname']['fieldname']['tmp_name'].

In order to know where to put the file and where to retrieve it, I use 
the db.
I have a table with id, name, created, modified.
When my script allows a file to be uploaded, the save() method will add 
a new row in the table.
I just use the id of that row as name for the file.

So fielsystem and db are sync, and and I can just think at my files like 
db data, because a file is
always stored in a folder named after its model name, and the filename 
is always corresponding to a row in the table.
This is a bad explanation for something quite simple ;)

olivvv

[EMAIL PROTECTED] wrote:
> Thanks for all that example code that helps to really reinforce things.
>  So, what is the location of the file before you call the
> move_uploaded_file??  Is this an Apache setting?I guess I am just
> confused as to how it knows where to upload to on the server and then
> knows to retrieve it and then you have to move it from being uploaded
> to actual a place on your server.  I guess that is a layer of security
> so that you can check it out for someone trying to hack by uploading
> malicious stuff.
>
> So, basically uploading files in a form I have to use the
> move_uploaded_file function.  But I can wrap it around a function in my
> app_controller to use frequently.
>
> Amazing that I have done web programming for a couple years now and
> never had to tackle the whole upload a file thing huh?
>
>
> >
>
>   


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Multiple File upload Flash

2006-09-18 Thread [EMAIL PROTECTED]

Thanks for all that example code that helps to really reinforce things.
 So, what is the location of the file before you call the
move_uploaded_file??  Is this an Apache setting?  I guess I am just
confused as to how it knows where to upload to on the server and then
knows to retrieve it and then you have to move it from being uploaded
to actual a place on your server.  I guess that is a layer of security
so that you can check it out for someone trying to hack by uploading
malicious stuff.

So, basically uploading files in a form I have to use the
move_uploaded_file function.  But I can wrap it around a function in my
app_controller to use frequently.

Amazing that I have done web programming for a couple years now and
never had to tackle the whole upload a file thing huh?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Multiple File upload Flash

2006-09-18 Thread Olivier Percebois-Garve

I use the following code to upload images.
I madethe images file mandatory, so save() is invalidated if there is no 
images.
I choose to store them in a directory named after the object's id.
I dunno on what to extend the explanation, please tell.

You'll find the file in $this->data['MyObject']['image']['tmp_name']
Also make sure your form contains the attribute: 
enctype="multipart/form-data"

olivvv

function edit($id = null)
{
$img = '';
if (isset($this->data['Applicationimage']['image']['tmp_name'])) 
$img = $this->data['Applicationimage']['image']['tmp_name'];

if (empty($this->data)){
if ($id) $this->data = $this->Applicationimage->read(null, $id);

$this->set('applicationArray',$this->Applicationimage->Application->generateList());

}else{

if (!$id) if (($img == '') || 
(!$this->_isValidImage($img)))  
$this->Applicationimage->invalidate('Applicationimage/image');
if ($id) if ($img != '') if (!$this->_isValidImage($img)) 
$this->Applicationimage->invalidate('Applicationimage/image');
   
$this->cleanUpFields();
if ($this->Applicationimage->save($this->data)){
if ($img != ''){
if ($id) $this->_uploadfile($img, 
$this->imgpath.DS.'application'.DS.$id.'.jpg');
if (!$id) $this->_uploadfile($img, 
$this->imgpath.DS.'application'.DS.$this->Applicationimage->getLastInsertID().'.jpg');

   
}
$this->flash('Votre image d\'application a 
été modifiée.','/applicationimages');   
}else{   

$this->set('applicationArray',$this->Applicationimage->Application->generateList());
if ($id) if ($img != '') if 
(!$this->_isValidImage($img))$this->set('imageerror', true);
if (!$id) if ($img == '') $this->set('imageerror', true);
}
}
}


functions in app_controller :##

function _selectedArray($data, $key='') {
$array = array();
if(!empty($data)) {
if ($key != ''){
foreach($data as $var) {
$array[$var[$key]] = $var[$key];
}
} else {
foreach($data as $var) {
$array[$var] = $var;
}
}
}
return $array;
}
   
function _isValidImage($tmp_name){
if (is_uploaded_file($tmp_name)) if 
(@getimagesize($tmp_name))return true;
else return false;
}

function _uploadFile($tmp_name, $filename){
if (is_uploaded_file($tmp_name)){
if(file_exists($filename)) unlink($filename);
move_uploaded_file( $tmp_name ,  $filename);
return true;
}
else return false;
}

## view file: ##

Ajouter une image d'application:

formTag('/applicationimages/add')
?>

tagErrorMsg('Applicationimage/name', 'Entrez le 
nom.');  ?>   
Nom: input('Applicationimage/name', 
array('size'=>'40'));  ?>


tagErrorMsg('Applicationimage/image', 'Entrez 
l\'image.');  ?>
Choisissez une 
image.'?>
Image: file('Applicationimage/image'); ?>


data['Applicationimage']['id'])){ ?>




  Application:
   tagErrorMsg('Applicationimage/application_id', 
'Choisissez une application.');  ?>   
   selectTag('Applicationimage/application_id', 
$applicationArray, null, null) ; ?>
   

  hidden('Applicationimage/id')  ?>   
submit('Save')  ?>





[EMAIL PROTECTED] wrote:
> Okay I am integrating a Multiple File upload Flash applet into CakePHP.
>  It is configurable to direct the uploaded files to a CakePHP url.
> Now, here is the line of code normally used by the script to get at the
> files uploaoded.
>
> move_uploaded_file($_FILES['Filedata']['tmp_name'], $uploadfile)
>
> Is there a pretty way to do this same thing in CakePHP?  I am pretty
> new to this POST upload of files so just looking to get some more
> information on the CakePHP way to do it since I couldn't really find
> much on this Group about it.
>
>
> >
>
>   


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Multiple File upload Flash

2006-09-18 Thread [EMAIL PROTECTED]

Okay I am integrating a Multiple File upload Flash applet into CakePHP.
 It is configurable to direct the uploaded files to a CakePHP url.
Now, here is the line of code normally used by the script to get at the
files uploaded.

move_uploaded_file($_FILES['Filedata']['tmp_name'], $uploadfile)

Is there a pretty way to do this same thing in CakePHP?  I am pretty
new to this POST upload of files so just looking to get some more
information on the CakePHP way to do it since I couldn't really find
much on this Group about it.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---