Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorImage upload.Image upload.
Previous
 
Next
New Post
6/11/2006 3:42 PM
 
I wonder if anyone know what settings is required for non-admins to be able to upload an image throught the upload menu you get on the "insert image" tool.

Currently i have:
FCKConfig.ImageUploadAllowedExtensions=".(jpg|gif|jpeg|png)$" ; // empty for all FCKConfig.
ImageUploadDeniedExtensions="" ;// empty for no one

and I get a message:

"Invalid file type" if I try to upload it with any other user than a user with admin rights.

Checking the script that throws the error:
if ( ( FCKConfig.ImageUploadAllowedExtensions.length > 0 && !oUploadAllowedExtRegex.test( sFile ) ) ||
( FCKConfig.ImageUploadDeniedExtensions.length > 0 && oUploadDeniedExtRegex.test( sFile ) ) )
{
OnUploadCompleted( 202 ) ;
return false ;
}

it kicks on on the oUploadDeniedExtRegex.test() which it shoul not kick in on as the variable has no denies om filetypes...

Anyone have an idea why it reacts as the .jpg i upload is on the denied extensions list?
 
New Post
6/11/2006 4:58 PM
 
Found the solution to this as well after adding a little debug to the source and recompiling the DLL.

The error occurs when the program checks if the User has access to the folder.

I believe the the author of the code could update that part.

In the javascript there are these 2 error msges
case 202 :
alert( 'Invalid file type' ) ;
return ;
case 203 :
alert( "Security error. You probably don't have enough permissions to upload. Please check your server." ) ;
return ;

In the fckimagegallery.aspx.vb if it fails on the role check it sends this error:
sErrorNumber = "202"

It should be 203 to display security error instead.
 
New Post
6/11/2006 5:28 PM
 

You are using DNN, then you must give permissions to every user to be allowed to upload to any DNN folder

Permissions are managed using the file manager on you admin menu.

The error type has been fixed for the next release to include the correct message


Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorImage upload.Image upload.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out