Uploading large audio files and Bulk uploading.

If you are using audio module in drupal there is a limit to size of audio files which can be uploaded. After much research I have found that the following can be used to increase the filesize limit of audio files.  and also to bulk upload your audios

Method 1:

Modify .htaccess file :

Add the following lines

php_value post_max_size 200M
php_value upload_max_filesize 200M
php_value max_execution_time 1000
php_value max_input_time 1000

# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_value mbstring.encoding_translation   0
----added here----

Method 2:

If you have root access modify php.ini file

Check the following values and set according to your requirement.

memory_limit = 65M
post_max_size = 65M
file_uploads = On
upload_max_filesize = 65M

Method 3: Bulk upload of audio files

Create a tempory directory on your drupal site for example. tmp\audio.You can then upload as many mp3's and as big as you like via FTP to this directory.

Then login to your Drupal site as an Admin and goto Administer then click the 'By Module' tab and then under audio import click 'Audio Import Settings'

On the next screen set the directory to the one you used above and click save.

From now on whenever you wish to add audio nodes that are larger than the upload permits you can simply upload the audio to your temporary directory, login to Drupal and then click administer and then 'Audio Import'.

You can import multiple files at once using this method or simply just a few, and this way you do not need to mess around with your .htaccess file

Method 4:  When its only few files

So here's what you do.

1. Make a 5 to 10 seconds duplicate of your audio mp3.
2. Add audio content as normal, adding the "scratch" version during the upload process, and submit the content.
3. Now you have your audio node, but with the short file only. Take the full sized file and FTP over the scratch file.
4. Here's the catch - you *must* go to that node and enter edit mode for this to work. Simply dragging it over doesn't seem to do the trick. When you enter edit mode, you should see the MP3 details adjust to the larger file. Save the changes (even though you haven't actually done any editing)


Method 1, and 2 are really the solutions, Method 3 has dual advantages, since you can do bulk uploading of your mp3 / audios.