Author Topic: Can add mp3s via URL, but not by direct upload  (Read 9620 times)

0 Members and 1 Guest are viewing this topic.

Offline phospheratu

  • Newbie
  • *
  • Posts: 12
    • View Profile
Can add mp3s via URL, but not by direct upload
« on: March 26, 2008, 08:54:31 PM »
Hi. My apologies, I would have written this in German, but my German is not that great, so I am writing it in English.

When I first installed 4images, I tested it out by uploading an mp3. It worked fine.
But all subsequent attempts to upload mp3 files have failed, with the error message "Error uploading image file:
My_Song_7.mp3: Invalid file type (mp3, application/x-unknown)"
It will not even allow me to upload the exact same file I successfully uploaded previously.
Nor could I upload an mp3 to Nicky's test site.

It will, however, allow me to add the mp3 files via URL.

What could be causing this? Is it a browser related problem?

I need to be able to directly upload mp3s.

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Can add mp3s via URL, but not by direct upload
« Reply #1 on: March 26, 2008, 10:47:16 PM »
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline phospheratu

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Can add mp3s via URL, but not by direct upload
« Reply #2 on: March 27, 2008, 12:19:27 AM »
I have already tried that.

Plus, as I mentioned in my first post, I was able to successfully upload the first mp3 -- but nothing since.

http://www.mindbabies.com/gallery

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Can add mp3s via URL, but not by direct upload
« Reply #3 on: March 27, 2008, 12:26:54 AM »
... for mp3 files you have this code line in your upload_definitions.php ... ? ... sure ... ?
Code: [Select]
$mime_type_match['mp3'] = array("audio/mpeg", "audio/x-mpeg", "audio/mp3", "application/x-unknown");
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline phospheratu

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Can add mp3s via URL, but not by direct upload
« Reply #4 on: March 27, 2008, 12:46:57 AM »
Yes. i had added that... but there is something weird going on.
I just went to re-open the upload_definitions.php with Smultron's html editor, and it gave me an error message upon opening.
It said something about an error reading UTF8 and asked if I wanted to open it anyway (sorry, I didn't write the error message down, and I can't remember exactly what it said).
So I opened it, and instead of my line looking like the one in your post, it has weird symbols in place of the o in audio and the slash. The symbol is an o with a diagonal line intersecting it. Could that be relevant?

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Can add mp3s via URL, but not by direct upload
« Reply #5 on: March 27, 2008, 12:53:29 AM »
... it is relevant ...
... try to edit your upload_definitions.php with txt-Editor ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline phospheratu

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Can add mp3s via URL, but not by direct upload
« Reply #6 on: March 27, 2008, 01:02:17 AM »
Any particular text editor? Or is txt-Editor the name of a program? Excuse my ignorance on this matter. I am fairly new to this php editing - and very new to using a Mac. The only text editing apps I appear to have on this Mac are Word and TextEdit.

Anyway... I downloaded the file to my desktop and opened it with TextEdit.app. It has the same strange symbols in it.
Should I change them all?

Edit:
Hmm... let me revise that. I selected TextEdit.app to open the file, but it opened with Smultron anyway. I can't get it to open with TextEdit.app.
Nor will it open with Word.

« Last Edit: March 27, 2008, 01:14:31 AM by phospheratu »

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Can add mp3s via URL, but not by direct upload
« Reply #7 on: March 27, 2008, 01:18:33 AM »
... you are using a mac ... sorry ... so you can't know txt-Editor ...  :mrgreen:
... use any text-editor you like ...
Should I change them all?
... yes ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline phospheratu

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Can add mp3s via URL, but not by direct upload
« Reply #8 on: March 27, 2008, 01:21:55 AM »
I can only the file with Smultron.
It will not open with any other text editor I have.

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Can add mp3s via URL, but not by direct upload
« Reply #9 on: March 27, 2008, 01:29:41 AM »
... edit the file with a editor you like ... or your mac like ... *
... but edit your upload_definitions.php ... right ...

* you can't select a program on your mac, that open and edit your php-file ... ?
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline phospheratu

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Can add mp3s via URL, but not by direct upload
« Reply #10 on: March 27, 2008, 01:45:20 AM »
I try to select "open with..." TextEdit.app or Word, but it doesn't open with them. It will only open with Smultron.

Update:
I decided to just go ahead and edit it with Smultron. I changed all the odd symbols and then saved it. It seems to be working now.
« Last Edit: March 27, 2008, 04:24:44 AM by phospheratu »

 

Post your comments here