Hello!
Is there any way to make the fileuploadbrowser to allow access to upload files without being logged in as super admin?
I've got a gallery on my site, as well as other pages that use images as well, that require me to be logged in as superadmin to access the fileuploadbrowser.html (Browse Server Button).
In my gallery.php file, I have
Everything works like a charm as long as I'm logged in as super admin, but if I'm not, I get an xml error 200(ok). I've found the code in the fileuploadbrowser.html that is throwing the error, but it would require I change the file itself to fix that, and I don't think that is the way to go.
I've been trying to modify around that by emulating the input field parameters with my own instance of kcfinder and it works fine and grabs the url, but when I create or edit an image in the gallery, the image url is sent as blank. I'm sure this is a security thing put in place.
I'd like to have either or work.
Basically
Option 1: Can I make fileuploadbrowser.html be accessible without superadmin session set
or
Option 2: How can I allow my input field to pass the text field's url that KCFinder grabs (which is the proper url to the image, it's just sending nothing from the field to the database) without the data being stripped out?
Is there any way to make the fileuploadbrowser to allow access to upload files without being logged in as super admin?
I've got a gallery on my site, as well as other pages that use images as well, that require me to be logged in as superadmin to access the fileuploadbrowser.html (Browse Server Button).
In my gallery.php file, I have
- Code: Select all
<cms:input type="bound" name="gg_image" />
Everything works like a charm as long as I'm logged in as super admin, but if I'm not, I get an xml error 200(ok). I've found the code in the fileuploadbrowser.html that is throwing the error, but it would require I change the file itself to fix that, and I don't think that is the way to go.
I've been trying to modify around that by emulating the input field parameters with my own instance of kcfinder and it works fine and grabs the url, but when I create or edit an image in the gallery, the image url is sent as blank. I'm sure this is a security thing put in place.
- Code: Select all
<input type="text" name="f_gg_image" id="f_gg_image" class="k_image_text" onclick="openKCFinder(this)" style="cursor:pointer" size="65" />
I'd like to have either or work.
Basically
Option 1: Can I make fileuploadbrowser.html be accessible without superadmin session set
or
Option 2: How can I allow my input field to pass the text field's url that KCFinder grabs (which is the proper url to the image, it's just sending nothing from the field to the database) without the data being stripped out?