PDA

View Full Version : Max 2 Meg File Size?


ewangr
May 19th, 2006, 03:54 PM
Is there a reason that the upload option for Ubuntu Center limits files to 2 megs in size? Any way I can reconfigure that?

Ubuntuud
May 19th, 2006, 04:03 PM
I think there is a reason, bandwidth/HD space.

TTT_travis
May 19th, 2006, 04:46 PM
Is there a reason that the upload option for Ubuntu Center limits files to 2 megs in size? Any way I can reconfigure that?

There is an option in /var/www/center/content/conf/uploads.php.inc called $max_filesize set that to what you want, you will probably also need to edit the php.ini file too.

ewangr
May 19th, 2006, 06:34 PM
I think there is a reason, bandwidth/HD space.

Well, I have a rather fast cable modem setup at home, and am on Internet2 at work. SO Bandwidth shouldn't be a problem.

As for my HD, the one I've got my default set to have over 100 gigs of free space.

So while I can believe both of those may be issues for some folks, it seems like having it be a configuration option during initial setup might be worthwhile.

FWIW,
Ewan

ewangr
May 19th, 2006, 06:35 PM
There is an option in /var/www/center/content/conf/uploads.php.inc called $max_filesize set that to what you want, you will probably also need to edit the php.ini file too.

Will try that. Any idea what I should be looking for in the php.ini file (and where is that located in Ubuntu)?

Thanks again,
Ewan

ewangr
May 20th, 2006, 07:03 AM
Bump...

ewangr
May 20th, 2006, 10:20 AM
OK, I updated the conf file, and I updated the php.ini that is in /etc/php5/apache2 and then did a restart. I also edited the conf file to allow mp3 and mpeg files (which are what I'm trying to move from one machine to another).

When I go to the upload module, it now shows that it will allow up to 3.9 Gigs (which will let me move some home movies from my Windows machine to my Ubuntu machine). However, once I select the file, the Upload button remains grayed out.

Any idea what might still be wrong?

TTT_travis
May 20th, 2006, 12:48 PM
OK, I updated the conf file, and I updated the php.ini that is in /etc/php5/apache2 and then did a restart. I also edited the conf file to allow mp3 and mpeg files (which are what I'm trying to move from one machine to another).

When I go to the upload module, it now shows that it will allow up to 3.9 Gigs (which will let me move some home movies from my Windows machine to my Ubuntu machine). However, once I select the file, the Upload button remains grayed out.

Any idea what might still be wrong?

Yes that usually happens when the file extension isn't allowed, edit the config file and add the file extension of your movies, like mpg or avi or whatever they are. BTW you might want to look at Samba for moving files like that across the network it is probably a little more efficient and would be a better solution.

Travis

ewangr
May 20th, 2006, 01:13 PM
Yes that usually happens when the file extension isn't allowed, edit the config file and add the file extension of your movies, like mpg or avi or whatever they are.

Actually, I did do that - that's the conf file I was talking about, and it didn't seem to help. That's why I was curious if there was some other file I needed to edit.

BTW you might want to look at Samba for moving files like that across the network it is probably a little more efficient and would be a better solution.

Well, I have a thread going in the Development forum on a problem I'm having using that in my configuration. Am hoping one way or the other to get something working. I'd prefer to avoid setting up an FTP server - particularly since my luck so far suggests I'd find a bug in that as well :-)

TTT_travis
May 21st, 2006, 11:02 AM
hmmm, well the only reason I can think of that the file upload button would stay grey is because of the file extension but since thats all good I don't know what to tell you. I would actually try the ftp server its simple to setup

apt-get install proftpd

login using one of your users name and passwords and it will take you to that users home directory.

Sorry thats the best I can do.
Travis

ewangr
May 21st, 2006, 11:30 AM
I'll try the FTP server, but could you try adding a new file extension to your config file and see if it works? Would probably be useful to know if it's a bug, or if it's just me :-)

I'll also try changing the filename and see if using a known extension makes it work.

FWIW,
Ewan

ewangr
May 21st, 2006, 11:39 AM
FWIW, if I change the file extension to .zip, the upload button then clears. However, if I change the filename even in the "rename file" to something other than the defaults that ship with Ubuntu Center, then the button remains gray.

Since the page shows the extensions I added to the config file as being acceptable, I suspect this shows an issue in the code that checks whether or not to "ungray" the upload button.

Now we'll see if the entire file uploads or not...

ewangr
May 21st, 2006, 11:44 AM
As I suspected might happen, the transfer stopped after 2 megs had transferred. I suspect that the module isn't quite as configurable as it thinks it is :-)

Oh well, we'll see if I can make progress with either of the other options. Thanks anyway!

TTT_travis
May 21st, 2006, 02:48 PM
I tried adding a new extension and it seems to have worked just fine for me. As for the filesize issue after you modified php.ini did you do

/etc/init.d/apache2 restart

to restart apache2 so the changes take effect?