4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: phospheratu on March 26, 2008, 08:54:31 PM

Title: Can add mp3s via URL, but not by direct upload
Post by: phospheratu 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.
Title: Re: Can add mp3s via URL, but not by direct upload
Post by: mawenzi on March 26, 2008, 10:47:16 PM
Invalid file type (mp3, application/x-unknown)"

... try this ...
... http://www.4homepages.de/forum/index.php?topic=7277.0 ...
Title: Re: Can add mp3s via URL, but not by direct upload
Post by: phospheratu 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 (http://www.mindbabies.com/gallery)
Title: Re: Can add mp3s via URL, but not by direct upload
Post by: mawenzi 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");
Title: Re: Can add mp3s via URL, but not by direct upload
Post by: phospheratu 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?
Title: Re: Can add mp3s via URL, but not by direct upload
Post by: mawenzi on March 27, 2008, 12:53:29 AM
... it is relevant ...
... try to edit your upload_definitions.php with txt-Editor ...
Title: Re: Can add mp3s via URL, but not by direct upload
Post by: phospheratu 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.

Title: Re: Can add mp3s via URL, but not by direct upload
Post by: mawenzi 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 ...
Title: Re: Can add mp3s via URL, but not by direct upload
Post by: phospheratu 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.
Title: Re: Can add mp3s via URL, but not by direct upload
Post by: mawenzi 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 ... ?
Title: Re: Can add mp3s via URL, but not by direct upload
Post by: phospheratu 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.