Welcome Guest, Not a member yet? Register   Sign In
File uploads and ajax insight
#8

[eluser]dmcb[/eluser]
I'm trying to implement swfupload on my code igniter site, but no luck. Everything works except the upload script swfupload calls after each successful upload doesn't work if I'm pointing at a controller function. It works when I point it to an upload php script outside of code igniter, but I really want to use the controller function. Is there any problem with this?

In my view, during the swfupload definition:
Code:
upload_target_url: "http://www.mysite.com/member/profile_upload_script"

And my member controller:
Code:
function profile_upload_script()
    {
        $this->load->helper('file');
        write_file('/relativeserverpath/blah.text', "lol");
    }

Swfupload never hits the function, or if it does, it won't run my write script, or any CI file upload code (not seen here). When I hit the controller function on my own, the test file gets written.

When I change the upload target url in my view to a php file outside of CI, everything works fine.


Messages In This Thread
File uploads and ajax insight - by El Forum - 08-17-2007, 09:22 PM
File uploads and ajax insight - by El Forum - 08-17-2007, 09:25 PM
File uploads and ajax insight - by El Forum - 08-17-2007, 11:00 PM
File uploads and ajax insight - by El Forum - 08-17-2007, 11:38 PM
File uploads and ajax insight - by El Forum - 10-19-2007, 06:32 PM
File uploads and ajax insight - by El Forum - 10-19-2007, 06:41 PM
File uploads and ajax insight - by El Forum - 10-19-2007, 08:31 PM
File uploads and ajax insight - by El Forum - 11-23-2007, 02:12 PM
File uploads and ajax insight - by El Forum - 11-30-2007, 11:06 AM
File uploads and ajax insight - by El Forum - 04-08-2008, 01:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB