uploading mp3 to music add-on

Permalink
Are you considering adding a paste-your-URL-to-mp3-file box to the music add-on?

I read some posts on how to increase the max size. I spent all day figuring out where my php.ini file was. I increased the max but I keep getting a 2M max message.

I can upload any size via ftp. Wouldn't it be easier if I could just call the file remotely?

I tried the htaccess hack somebody suggested but only managed to crash my site.

I copied the php.ini to where I believe the script is...an nothing.

Adding the file from remote URL did not work because the file manager did not like the file extension.

I'm no expert at php. I'm giving up :-(

redbajio
 
JCinch replied on at Permalink Reply
If you are asking how to upload a file via ftp, and have it added to the file manager, logon to your ftp server, and go to where c5 is. Now, in the folder named "files", create a folder named "incoming". Upload your file to the incoming folder. Then, go to the page that you want the music addon to be, and click on the button you'd use to select the file using the file manager. Click on the "more" button beside the upload form, and click "Add from incoming". Select your file, add it to the file manager, and then select it.

I'd be able to add a field for putting in your url, if you'd like
redbajio replied on at Permalink Reply
redbajio
Thanks fikelfikel,

I totally forgot about this help request. I've been having an awful time dealing with this. I've tried some of those fancy flash players but they are invisible if using Explorer (even IE8). And the normal html player tag renders a very ugly player.

I'm going to try this out. The missing folder, it used to happen with avatars in earlier versions of c5
ijessup replied on at Permalink Reply
ijessup
This is what one of my .htaccess files looks like for altering the upload size.

<IfModule mod_php5.c>
php_value upload_max_filesize "512M"
php_value post_max_size "512M"
php_value memory_limit "512M"
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

Ignore the mod_rewrite stuff if you don't have Pretty URLS turned on. And, please someone correct me if I'm wrong, but if you are on a windows system, the module names should be *.dll not *.c

If you don't want to use the .htaccess file, make sure you change all three (upload_max_filesize, post_max_size and memory_limit) to the size you would like. for MP3s I would assume 32MB would be plenty.

If you have the ability, make sure you reset the http daemon for the changes to take effect. If you are going through a hosting company and are making changes through their php.ini editor, the changes should be close to instant.
redbajio replied on at Permalink Reply
redbajio
Thanks ijessup, fikelfikel's instructions worked as a charmer.

I'm actually not very familiar with .htaccess, so I better not mess with that.

I did try it that day I configured the php.ini but I got an error so I just put it back and started this thread, and I'm happy I did.