Author Topic: Select an Image File! error  (Read 32004 times)

0 Members and 1 Guest are viewing this topic.

Offline jjo

  • Newbie
  • *
  • Posts: 27
    • View Profile
Select an Image File! error
« on: November 09, 2005, 01:28:46 AM »
Why would my gallery (http://www.joelfan.com/gallery) not permit any uploads of MP3 files?  I have the MP3 extension set in the control panel as an acceptable upload extension, and I added the MP3 mime type line added in the upload_definitions.php file, and I have an MP3 template html file created.

But when you try to upload an MP3 file, it uploads the file, but then the upload form is shown again with the "Select an Image File!" error on top.  And yes, the MP3 file is below the max file size.

Any thoughts?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Select an Image File! error
« Reply #1 on: November 09, 2005, 02:49:28 AM »
What about other extensions?
What 4images version?
PHP version?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline jjo

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Select an Image File! error
« Reply #2 on: November 09, 2005, 02:53:15 AM »
What about other extensions?
What 4images version?
PHP version?

-Other extensions seem to work fine.
-4Images 1.71
-PHP 4.3.11 with Zend Optimizer

Also, recently, my gallery is behaving very slowly.  Is there something I can flush or reset to quicken the gallery?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Select an Image File! error
« Reply #3 on: November 09, 2005, 03:01:50 AM »
-Other extensions seem to work fine.
-4Images 1.71
-PHP 4.3.11 with Zend Optimizer
Can you create a test category were we could upload?


Also, recently, my gallery is behaving very slowly. Is there something I can flush or reset to quicken the gallery?
Make sure you dont have remote images, 4images does not like these.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline jjo

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Select an Image File! error
« Reply #4 on: November 09, 2005, 03:04:15 AM »
Test category created.  Anyone can upload there.

And, how do I know if I have "remote images"?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Select an Image File! error
« Reply #5 on: November 09, 2005, 03:06:58 AM »
well, you could try search in ACP for images with http:// in their filenames
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Select an Image File! error
« Reply #6 on: November 09, 2005, 03:08:26 AM »
I can tell you right now http://joelfan.orlowski.com/gallery/details.php?image_id=40
is a remote file.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Select an Image File! error
« Reply #7 on: November 09, 2005, 03:11:19 AM »
But when you try to upload an MP3 file, it uploads the file, but then the upload form is shown again with the "Select an Image File!" error on top.
Not only! it also shows this:
Quote
fword.mp3: Invalid file type (mp3, application/octet-stream)
And the solution is:
http://www.4homepages.de/forum/index.php?topic=7277.0
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline jjo

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Select an Image File! error
« Reply #8 on: November 09, 2005, 03:11:49 AM »
Is it possible to disable remote image/file hosting?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Select an Image File! error
« Reply #9 on: November 09, 2005, 03:13:21 AM »
just remove the field from member_upload.html template.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline jjo

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Select an Image File! error
« Reply #10 on: November 09, 2005, 03:13:36 AM »
But when you try to upload an MP3 file, it uploads the file, but then the upload form is shown again with the "Select an Image File!" error on top.
Not only! it also shows this:
Quote
fword.mp3: Invalid file type (mp3, application/octet-stream)
And the solution is:
http://www.4homepages.de/forum/index.php?topic=7277.0

I already have this line in my upload_definitions.php file:

$mime_type_match['mp3'] = array("audio/mpeg", "audio/x-mpeg", "audio/mp3", "audio/mpg");

Is that syntax wrong?


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Select an Image File! error
« Reply #11 on: November 09, 2005, 03:16:34 AM »
No, you don't have the correct mime, I mean the syntax is correct, but you are missing the mime type needed, please read more carefuly the FAQ topic I've showed above
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline jjo

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Select an Image File! error
« Reply #12 on: November 09, 2005, 03:16:48 AM »
just remove the field from member_upload.html template.

I removed (remarked-out) that field, and did an MP3 upload test, and it uploaded fine.

I changed nothing else.

Odd?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Select an Image File! error
« Reply #13 on: November 09, 2005, 03:25:27 AM »
I removed (remarked-out) that field, and did an MP3 upload test, and it uploaded fine.

I changed nothing else.

Odd?

indeed....:?
I had openend your "old" page with URL field in it, and it didnt let me upload, but after page referesh and tryed again - it worked...never seen this before :?

P.S. remote thumbnails also might slow down your gallery.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline jjo

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Select an Image File! error
« Reply #14 on: November 09, 2005, 03:41:19 AM »
Looks like its very picky when it comes to MP3 files.

A test 3.84 MB MP3 file at 44kh 16-bit Stereo won't upload, but that same file reduced to 860k 22kh mono will.

My upload file size limit is capped at 10mb.

Here are those files zipped...
http://www.joelfan.com/files.zip

Any thoughts?