CodeIgniter Forums
Flash Based File Uploader... & Problems with codeIgniter - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Flash Based File Uploader... & Problems with codeIgniter (/showthread.php?tid=30247)



Flash Based File Uploader... & Problems with codeIgniter - El Forum - 05-07-2010

[eluser]rckehoe[/eluser]
I have a very simple flash file uploader... I get the flash to display in my view file, and then you click the Find File button, it opens up a file dialogue box... When you select a file and upload, it is suppose to call a controller within my build and upload the file....

This is my problem:
The controller is never initiated... I know this because all I have in the controller is a simple mail function that shoots me an email, but I never get this email... I can call the controller directly from my browser and I get the email just fine. But it is not initiated through the Flash app...

Here is my code for my controller:

function upload_swf_property_photos(){
mail('MY_EMAIL','test','test','From:FROM_EMAIL');
}

On my view file, I am using the SWFObject wrapper:

[removed]
swfobject.embedSWF("/media/fupload/SingleFileUpload.swf", "UploadComponent", "150", "100", "9.0.0");
[removed]

<div id='UploadComponent'></div>


I have been struggling with this problem for some time now, and any help that anyone can offer would be greatly appreciated!

Rob