I have been using your module for a long time, but just recently made some changes and upgraded to drupal 6.x which i know is not currently supported by you. I've tested on 5.x with the same mp3 and it works as expected.

The problem I'm facing, when I import the 65meg mp3, it shows it as 8megs, and when you click the download button, it downloads 8 megs. The first thing I checked, was to make sure it copied it to the files/audio folder. It did, and its the full 65 megs. However, on the page, it shows this 71:09 minutes (8 MB).

Now... if I link directly to the file in files/audio/filename.mp3, it downloads the full 65 megs. Is there a cache or something that its reading to send only 8 megs of the file? Is it something in the database?

Also, for testing purposes, I testing on my other site which is still 5.x and works as expected there. If there is anything I can do to help out and help diagnose, please let me know. If you want URL's, let me know and Ill send some your way for testing.

Thanks Much!

CommentFileSizeAuthor
Picture 1.png31.13 KBfffizzz

Comments

cymru2000’s picture

I've been having the same issue, so today decided to have a quick look at the Database side (mainly because of what you wrote) and discovered that by changing the file_size field in the Audio table from MEDIUMINT to INT and then putting in the correct bytesize from the post, the correct filesize would be listed, and played by the flash player as well as being downloadable (not capping at 8 MB).

It also looks like it works for newly uploaded files, I've just uploaded 3 of different sizes and all are behaving as expected.

::Edit::
Just had a look into why this worked and it looks like if really is the difference between MEDIUMINT and INT. MEDIUMINT has a signed range of -8388608 to 8388607, which means that it wont store a number higher than 7.9999MB in bytes. Changing this to INT ups that limit to little under 2GB so unless you are uploading ludicrously large MP3's this single change should be enough.

So basically, go into the Audio table, and change File_Size from MEDIUMINT to INT, and you'll get over the 8MB limit.

mfb’s picture

Status: Active » Closed (duplicate)

Marking as duplicate of http://drupal.org/node/285032

fffizzz’s picture

the db change did the trick.

thanks