Menu

Error adding Media

Help
2001-12-11
2002-03-30
  • chris fraser

    chris fraser - 2001-12-11

    Greetings,
    I have the CVS version in stalled on my phpws 0.8.1 site. The install went fine. I created one gallery with one album. The problem came when I went to add media. I got the following error:

    Error!

    seneshal.gif isn't the correct file type
    Allowed types are: image/gif image/jpeg image/pjpeg image/png
    Your file is: image/gif; name=\"seneshal.gif\"

     
    • Anonymous

      Anonymous - 2001-12-12

      Try changing the CHMOD on the MOD>GALLERY>MEDIA directory and MOD>GALLERY>MEDIA>THUMBNAILS directory to 777.

      Think I also changed the MOD>GALLERY>IMAGES gallery as well!

      good luck

       
      • chris fraser

        chris fraser - 2001-12-12

        Oops... Sorry, I forgot to mention that I'm running phpWebsite 0.8.1 on WinXP Pro with Apache 1.3.22, php 4.0.6 and my sql 3.23.43-nt. It was installed under the WinXP Administrator account, so premission shouldn't be a problem.
        I appears to be a problem with Opera that hasn't been fixed from 5 to 6. I tried adding media while using Netscape 6.1 last night and it worked fine.

         
    • Paul H. Lewis

      Paul H. Lewis - 2002-03-25

      Hi,
      I got the same error message, except the error also included an erroneous statement about the file type:

      Dcp_0832.gif isn't the correct file type
      Allowed types are: image/gif image/jpeg image/pjpeg image/png
      Your file is: application/octet-stream.

      Any suggestions? Thanks.

       
    • Andrew Fisher

      Andrew Fisher - 2002-03-30

      Your browser is sending the incorrect MIME type to the server. The only way around it is to open up gallery_config.php and change the line that says:

      $gal_allowed_mime = 'image/gif image/jpeg image/pjpeg image/png image/x-png';

      to:

      $gal_allowed_mime = 'image/gif image/jpeg image/pjpeg image/png image/x-png application/octet-stream';

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.