Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Photo Album Upload error

Asked Modified Viewed 4,420 times
A
Aokiji
A
Aokiji 10
  • Junior Member, joined since
  • Contributed 35 posts on the community forums.
  • Started 17 threads in the forums
  • Started this discussions
asked
Junior Member

on some pictures i get

Your Photo could not be submitted

Image must be a GIF, JPEG or PNG file.

how ever i uploaded a similar one fine only does this on random pics
0 replies

6 posts

T
Talocha
T
  • Member, joined since
  • Contributed 90 posts on the community forums.
  • Started 10 threads in the forums
answered
Member

problem in file upload
only allows extensions JPG GIF PNG capitalized
testing in other versions 7.02
after upgrading
related errors
Prevented an unwanted file upload attempt!
7.02 07 new installation works fine

testing on other pages 7.02 05 and 7.02 06
have this error

Solution Update includes folder
use full package 7.02 07

after this - work well

is likely to miss include files in update packages
Edited by Talocha on 11-12-2013 13:26,
0 replies
J
jekov
J
jekov 10
  • Junior Member, joined since
  • Contributed 26 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

In user photo gallery Thread http://www.php-fusion.co.uk/forum/viewthread.php?thread_id=33340#post_182844
There are small bugs, and one of them is, you can not add files of lower case extension.
0 replies
G
Grimloch
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Answered 2 questions
answered
Senior Member

Well I know for a positive fact that the pic is fine; also I tried several of my own pictures w/same result. The check in maincore just doesn't work right. I commented out the entire thing and all is good.
0 replies
F
Falk
F
Falk 148
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

The image could contain bad codes.
Most image upload sections should also run something called verify_image function, I woulden´t recommend disabling that, but in a controlled environment you could unless you have good means to manually verify that image.
0 replies
G
Grimloch
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Answered 2 questions
answered
Senior Member

@DOMI

Hey. On my brand new fresh install of 7.02.07 I have a user that tried to submit a photo and couldn't. He emailed me and attached the photo which is a valid jpg file @1600x1200. I then tried myself to do a submit and it failed for me also saying invaled filetype so I totally disabled the check in maincore as suggested and it still fails. I don't understand why this is happening.
0 replies
— 1 month earlier —
F
Falk
F
Falk 148
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

Your images could have bad headers ( damaged ) or they could be named with the wrong extension.
You can temporarly disable the upload check function from maincore.php

// Checking file types of the uploaded file with known mime types list to prevent uploading unwanted files
if(isset($_FILES) && count($_FILES)) {
   require_once BASEDIR.'includes/mimetypes_include.php';
   $mime_types = mimeTypes();
   foreach($_FILES as $each) {
      if(isset($each['name']) && strlen($each['tmp_name'])) {
         $file_info = pathinfo($each['name']);
         $extension = $file_info['extension'];
         if(array_key_exists($extension, $mime_types)) {
            //An extension may have more than one mime type
            if(is_array($mime_types[$extension])) {
               //We should check each extension one by one
               $valid_mimetype = false;
               foreach($mime_types[$extension] as $each_mimetype) {
                  //If we have a match, we set the value to true and break the loop
                  if($each_mimetype==$each['type']) {
                     $valid_mimetype = true;
                     break;
                  }
               }

               if(!$valid_mimetype) {
                  die('Prevented an unwanted file upload attempt!');
               }
               unset($valid_mimetype);
            } else {
               if($mime_types[$extension]!=$each['type']) {
                  die('Prevented an unwanted file upload attempt!');
               }
            }
         } /*else { //Let's disable this for now
            //almost impossible with provided array, but we throw an error anyways
            die('Unknown file type');
         }*/
         unset($file_info,$extension);
      }
   }
   unset($mime_types);
}
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 6 posts
  • Votes 0 votes
  • Topic users 5 members

5 participants

F
F
Falk 148
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
G
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Answered 2 questions
A
A
Aokiji 10
  • Junior Member, joined since
  • Contributed 35 posts on the community forums.
  • Started 17 threads in the forums
  • Started this discussions
J
J
jekov 10
  • Junior Member, joined since
  • Contributed 26 posts on the community forums.
  • Started 1 thread in the forums
T
T
  • Member, joined since
  • Contributed 90 posts on the community forums.
  • Started 10 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet