>From reading over that topic - on quick glance after using the script a bit - it looks like this is a case of something trying to be helpful, and doing too much. Think Microsoft Office Word and it's ability to auto-set your margins for you to be "helpful".
Without taking a deeper look at both the uploader.fla, upload.php and jquery.uploadify (Source).js files (and perhaps a quick visit to CakePHP's mod_rewrite section of the .htaccess file), I won't have an answer for you...and considering I already have a long list of other things to work on, I don't think I'll be able to get to this anytime soon. One question I do have for you though (as it makes a small difference), is the upload being done for you on a *.ctp file from a controller's view, a pagecontroller's view, or from an unrelated file in the document root? On Apr 2, 6:22 pm, Robert McWay <[email protected]> wrote: > That was one of the first things i tried...When i changed this it > created a "files" folder in the root cake direcory...thats why i had > to change it to its current path. The answer has something to do with > the way cakephp writes the urls..I found a post topic in the Uploadify > forum, > (http://www.uploadify.com/forum/viewtopic.php?f=7&t=47&p=210&hilit=mvc... > ), where someone had a similar issue with code ignitor, but i could > not get the proposed answer to work. Thanks for the help... > > On Apr 2, 3:00 pm, Brendon Kozlowski <[email protected]> wrote: > > > > > Without taking any further look at how this script and included jQuery > > function actually works (but the settings you provided)...try changing > > the "folder" setting's value to simply "/files". > > > If that doesn't work I might actually take a look at this. It's > > probably very simple to fix, and the script itself sounds neat (and > > possibly useful). :) > > > On Apr 2, 3:53 pm, Robert <[email protected]> wrote: > > > > I am trying to implement the JQuery Plugin, "Uploadify" in my CakePHP > > > project...but I am having a problem calling the upload script > > > specified in the "script" parameter...This is due to the fact that the > > > CakePHP "Pretty URLs" are breaking it. After some research through > > > this forum, i came across a post where someone was having a similar > > > problem in CodeIgniter...The solution was to strip the pagepath > > > variable from the uploadify script, to allow use of pretty > > > urls...however i still cannot get the script to find my upload > > > script... > > > > my jquery function... > > > > $('#PhotoFilename').fileUpload({ > > > 'uploader': '/uploader.swf', > > > 'script': '/photos/upload', > > > 'folder': '/app/webroot/files', > > > 'cancelImg': '/img/cancel.png', > > > 'multi': true > > > }); > > > > ..from jquery.uploadify: setting the pagepath to nothing... > > > > var f="&pagepath="; > > > > I have tried using a relative path, as well as an absolute path, for > > > teh "script" parameter, but nothing has worked...Any insight would be > > > much appreciated...- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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=en -~----------~----~----~----~------~----~------~--~---
