We have moved to Github. Please open tickets there.

Opened 3 years ago

Closed 3 years ago

#1426 closed Defect (Moved to extensions)

The file plugin doesn't distinguish some file types

Reported by: OnlyBlue Owned by:
Priority: normal Milestone: Elgg 1.7
Component: Core Version: Github Master
Severity: minor Keywords: file mpg mpeg mp3
Cc: brettp Difficulty:

Description

There are five uploaded file types defined in file plugin. They are video, document, audio, image and general. The corresponding directories are Videos, Documents, Audio, Pictures and General.
When I uploaded a pdf file, a category Documents generated. The pdf file belong to this category. It is right.
When I uploaded a jpg file, a category Pictures generated. The jpg file belong to this category. It is right.
When I uploaded a mpg or a mpeg file, a category General generated. the mpg file or the mpeg file belong to this category. But I think a category Videos should be generated for the mpg file or the mpeg file.
When I upload the mp3 files, things get worse. Some mp3 files are recognize as audio file and some are not. All these mp3 files are played well in Windows Media Player and foobar.
This is my first ticket. I hope the administrator modify it if needed.

Attachments (2)

elgg_file_mp3_problem.png (75.2 KB) - added by OnlyBlue 3 years ago.
file plugin test
elgg_file_mp3_problem.2.png (75.2 KB) - added by OnlyBlue 3 years ago.
file plugin test

Download all attachments as: .zip

Change History (9)

comment:1 Changed 3 years ago by OnlyBlue

There are five uploaded file types defined in file plugin. They are video, document, audio, image and general. The corresponding directories are Videos, Documents, Audio, Pictures and General.

When I uploaded a pdf file, a category Documents generated. The pdf file belong to this category. It is right.

When I uploaded a jpg file, a category Pictures generated. The jpg file belong to this category. It is right.

When I uploaded a mpg or a mpeg file, a category General generated. the mpg file or the mpeg file belong to this category. But I think a category Videos should be generated for the mpg file or the mpeg file.

When I upload the mp3 files, things get worse. Some mp3 files are recognize as audio file and some are not. All these mp3 files are played well in Windows Media Player and foobar.

This is my first ticket. I hope the administrator modify it if needed.

comment:2 Changed 3 years ago by cash

  • Priority changed from critical to minor
  • Type changed from confirmed defect to unconfirmed defect

Elgg depends on the browser to set the mime type. Is there any way for you to point us at a mp3 file that is not being detected as an audio file? Also need to know what browser you were using.

comment:3 Changed 3 years ago by OnlyBlue

I'm using Firefox 3.5.4. I never change the mime type of Firefox.

There are three sample mp3 files in Windows 7. I only remember the names of them. They are Kalimba, Maid with the Flaxen Hair and Sleep Away. Unfortunately,I removed these mp3 files and can't remember which one is not being detected as a audio file.

Changed 3 years ago by OnlyBlue

file plugin test

Changed 3 years ago by OnlyBlue

file plugin test

comment:4 Changed 3 years ago by OnlyBlue

I ask other person transporting two mp3 to me. One is Kalimba, and another is Maid with the Flaxen Hair. I test the file uploading again. The attached file is made from screenshots after file uploading. The mp3s are too big to attach.

Sorry for uploading the file twice. The two attachments are same.

comment:5 Changed 3 years ago by OnlyBlue

  • Version changed from 1.6 to SVN Trunk

The elgg 1.7a core is revision 3854. The file plugin is nightly build Jan 30. The browser is Firefox 3.5.4. The mp3 file "Kalimba" is one of the native sample audio file of Windows 7.
While I'm upload the mp3 file Kalimba, a system messagebox appears: "Form is missing token or ts fields". The mp3 file was not uploaded to the website. I try to upload another mp3 file "Maid with the Flaxen Hair". It can be uploaded successfully. The attachment is the mp3 file Kalimba.

comment:6 Changed 3 years ago by OnlyBlue

Sorry, the Kalimba is more than 1M.

comment:7 Changed 3 years ago by brettp

  • Resolution set to Moved to extensions
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.