Welcome Guest, Not a member yet? Register   Sign In
Integrating NicEdit image upload script with CI
#1

[eluser]gh0st[/eluser]
I'm using the NicEdit WYSIWYG editor. I've got it working fine, and saving stuff to DB fine, etc and now I'm on the tricky part of getting image uploads to work.

NicEdit requires the path to the `nicUpload.php` file, which does all the work.

The `nicUpload.php` isn't coded in CI, and seems to cause XSS issues. Is anything that sits outside of CI inside the CI framework? (IE: is all the POST stuff etc still cleaned up?)

I have Mozilla's NoScript which "reduces" the threat of XSS attacks on clickthroughs and whenever I do an image upload NoScript complains of an unsafe reload -- which means that nicUpload.php has issues relating to XSS.

What I'm trying to figure out is how to get `nicUpload.php` into CI and secondly, stop all this XSS issues relating to this file.

I've attached the code, with the hope that someone can either recode it, or point me in the right direction of how to integrate the upload script into CI.

[edit]

I can't seem to upload the nicUpload.php file either as a PHP file, or text -- so here is a link to the SVN trunk where you can download nicUpload.php

URL:
http://nicedit.com/svn/nicedit/trunk/nicUpload/php/


Messages In This Thread
Integrating NicEdit image upload script with CI - by El Forum - 02-17-2009, 01:20 PM
Integrating NicEdit image upload script with CI - by El Forum - 02-17-2009, 01:39 PM
Integrating NicEdit image upload script with CI - by El Forum - 02-17-2009, 01:41 PM
Integrating NicEdit image upload script with CI - by El Forum - 02-17-2009, 01:44 PM
Integrating NicEdit image upload script with CI - by El Forum - 02-17-2009, 01:56 PM
Integrating NicEdit image upload script with CI - by El Forum - 02-18-2009, 03:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB