Hi Paul, again thanks for the input. I was under the impression that it's impossible to upload files via ajax for security reasons. Or that at least what I want to do is impossible via any other way.
IE I want to have a form which has several inputs, one of which is a file input. When someone selects the file I want the image to upload (without submitting the whole rest of the form) and for the image to appear in it's thumbnailed size as a preview on the page, again all without refreshing. Have I got the wrong end of the stick, can I do this just with Ajax? Thanks for taking the time to respond, you're right, you're the only one helping me :) but I understand why. I just need to go off and learn about ajax then I guess? On Nov 18, 8:29 am, phpMagpie <[email protected]> wrote: > Ewww, iframes (never used them myself). AJAX would be a much easier and > understandable solution to what your trying to do, and more useful thing to > learn for any other time you want to update content on a page without a > full page load. > > Surely this plugin comes with the upload.php file supplied? It would not > be much of a plugin if it did not actually process the upload. This is > where you would be better off using one of the already integrated plugins > as for this one you;re going to have to bring it in as a vendor or write > your own plugin/component so Cake will interface with it correctly. > > If your new to PHP, Cake and JS this is a big ask and not sure anyone is > going to do it for you when image upload plugins have already covered by > other plugins (notice I am the only one replying to your question on this). > I recommend again that you go use one of the existing plugins that uses > AJAX and learn how to pass back the image url (and then use JS to insert an > image into your DOM). > > HTH, Paul. -- 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
