Image upload doesn't work - File format not allowed

  •  03-10-2009, 2:17 AM

    Image upload doesn't work - File format not allowed

     

    Hello!

    I have a problem with upload of images.

    I didn’t make any restrictions.

    My php-code is:

     

                $editor=new CuteEditor();

                $editor->ID="Editor1";

                $editor->Text="";

                $editor->FilesPath="/editor_intranet/CuteEditor_Files";

                $editor->FilesGalleryPath = "/upload/Newssystem/Images";

                $editor->ImageGalleryPath = "/upload/Newssystem/Images";

                $editor->EditCompleteDocument=false;

                $editor->AutoParseClasses=true;

                $editor->SaveFile();

                $editor->ShowHtmlMode=false;

                $editor->Height="400";

                $editor->Width="800";

                $editor->UseStandardDialog=true;

                $editor->BreakElement="Br";

                $editor->Draw();

                $editor=null;

     

    But I can’t upload any images, I become always massage like image/x-pngimage/png File format not allowed! Please contact site administrator.

    For all the types of image-files. I can upload other files like doc or pdf, but not images. I don’t use any filters and I didn’t change the configuration files. I can’t find what is wrong.

    In my default configuration file stay this:

                <security name="ImageFilters">

                            <item>.jpg</item>

                            <item>.jpeg</item>

                            <item>.gif</item>

                            <item>.png</item>

                            <item>.bmp</item>

                </security>

    I understand, that these files are allowed for upload. But it doesn’t work.

    My upload folder hat the rights rwx, is free for all user to write or change the files there.

    Please answer me how I can resolve this problem.

     

    Thank you in advance!

     

View Complete Thread