no

How to Integrate Uploadify With Codeigniter

Googling around I've found several solutions, but not to my liking some even suggest to edit the fla. Well there's no problem with t...

Googling around I've found several solutions, but not to my liking some even suggest to edit the fla. Well there's no problem with that if you want to. The problem with the uploadify.swf is that if uploads the file relative to the .swf location. So I've come up with a simple yet effective solution. 1.) Open the uploadify.php
//normally it should be like this:
$targetPath = $_SERVER['DOCUMENT_ROOT'] . $_REQUEST['folder'] . '/';
$targetFile =  str_replace('//','/',$targetPath) . $_FILES['Filedata']['name'];
$targetFile = $_REQUEST["folder"] . $_FILES['Filedata']['name'];

//just change it to:
$targetFile = getcwd();
Or set $targetFile to any directory of your liking.

Related

web 8723781716314819888

Post a Comment Default Comments

1 comment

Craig R Morton said...

Thanks, this helped loads!

Outsourcing

Are you looking for freelancers in the Philippines? Get in touch.

Donations

If you like what I do, you can support this channel by buying me a coffee. I would be grateful for your contribution! Your donations will help me create more FREE online courses and learning materials for programmers and remote workers.

item