- Posts: 37
COMMUNITY FORUM
Increase max file upload size
- Samuel Carbo III
-
Topic Author
- Offline
- Junior Member
Please Log in or Create an account to join the conversation.
- Manny Santos
-
- Offline
- Senior Member
- Posts: 49
Please Log in or Create an account to join the conversation.
- FT1
-
- Offline
- New Member
- Posts: 7
I think there is a safer method to upload big files
As php.ini can't be modified on hosted sites we need a different upload method for big files
Usually, FTP have no file size limit on hosting providers (only limited for the hosting disk space you are paying for) so we can:
1) upload the file using ftp to the media folder and just make a reference (link) to it on the article.
2) modify the K2 code to allow the option to pickup a file from the media folder and from there make the same treatment as if it was uploaded with the form (even removing it from the media folder so no garbage left behind)
I'm going to take a look to the upload code, if I manage to implement the option 2 I'll post my mod here
Please Log in or Create an account to join the conversation.
- piperchick
-
- Offline
- Premium Member
- Posts: 133
Keep us posted on your progress.
FT1 said:Hello I think there is a safer method to upload big files
As php.ini can't be modified on hosted sites we need a different upload method for big files
Usually, FTP have no file size limit on hosting providers (only limited for the hosting disk space you are paying for) so we can:
1) upload the file using ftp to the media folder and just make a reference (link) to it on the article.
2) modify the K2 code to allow the option to pickup a file from the media folder and from there make the same treatment as if it was uploaded with the form (even removing it from the media folder so no garbage left behind)
I'm going to take a look to the upload code, if I manage to implement the option 2 I'll post my mod here
Please Log in or Create an account to join the conversation.
- Samuel Carbo III
-
Topic Author
- Offline
- Junior Member
- Posts: 37
Everyone that says check your php.ini is correct, check it, make sure that your upload size is set to what you want it to be, if you are unsure, look over the joomla forums for the bit of code you need to add to your php.ini file.
Alright once that is done, this is how you fix it (well it worked for me) you should already have a php.ini file in your root directory (where your site is hosted) that you have access to. Most likely you are running joomla 1.5, if you are this means you should be running php5, thus a php.ini file will not work. Simply change the name of your 'php.ini' file to 'php5.ini' and if all the settings are correct in the file refresh your site and everything should work.
I hope my fix works for everyone else.
Please Log in or Create an account to join the conversation.
- Yousuf
-
- Offline
- New Member
- Posts: 1
I just follow what you say and it was changed from 8mb to 50 mb but after SEO SETTINGS ENABLE it has auto changed from 50mb to 2M max upload then you I reopen php.ini file and find upload size and it is 50m but not effective on k2 plz plz help
Please Log in or Create an account to join the conversation.
- Xcantion
-
- Offline
- Junior Member
- Posts: 32
i have test with rename php.ini to php5.ini... but nothing works ... pls help
Please Log in or Create an account to join the conversation.
- piperchick
-
- Offline
- Premium Member
- Posts: 133
topmaniac said:I know this is a older thread but i have the sam eproblem .. i have increase max upload size from 2 -> 150M everything works with this but only k2 not ... i have test with rename php.ini to php5.ini... but nothing works ... pls help
Please Log in or Create an account to join the conversation.
- Gameinatrix
-
- Offline
- Junior Member
- Posts: 33
piperchick said:Don't forget to increase your memory_limit. Mine is 62 mb, but you may want to go a bit higher if your max upload is 150.
topmaniac said:I know this is a older thread but i have the sam eproblem .. i have increase max upload size from 2 -> 150M everything works with this but only k2 not ... i have test with rename php.ini to php5.ini... but nothing works ... pls help
Please Log in or Create an account to join the conversation.
- that library
-
- Offline
- Senior Member
- Posts: 61
Hope that helps (and remember to always make a backup of the original!)
Please Log in or Create an account to join the conversation.
- that library
-
- Offline
- Senior Member
- Posts: 61
Why does K2 not recognize this?
Please Log in or Create an account to join the conversation.
- David R.
-
- Offline
- Premium Member
- Posts: 81
K2 has to work within the php settings, so all joomla can do is limit the size of an upload to be less than what php would otherwise allow. The way it does this is brain dead and quite annoying -- it waits until the entire upload is complete and then disallows it at the last instance after the entire file has been sent.
Truthfully, this is one of the weaknesses of php's underlying functions, the way HTTP posts work, and the way media manager works in joomla. Media manager is one of joomla's weaknesses and could really use an extensive overhaul.
FTP as an alternative has the issues of lack of integration, where people can easily misplace an asset, and can also require that you 777 all your directories, opening up security holes on shared hosts (although most shared hosts now utilize fastcgi to mitigate these issues and run apache as the user).
Another alternative was the flash upload module, but unfortunately recent changes to flash5 have rendered most of those widgets broken, since adobe has made it so that flash can no longer have its local file manager opened through a javascript event.
There will never be a browser based solution that works for all people on all hosts with all configurations, and joomla has taken the same approach that many projects have taken, and provided a simple lowest common denominator solution.
Carolyn Harris said:I have increased the max_upload_size and memory_limit AND renamed php.ini to php5.ini and I STILL see within the admin when making a new K2 entry "Max upload size 400M" even though I put a much higher file size limit in the php.ini (now php5.ini) file.
Why does K2 not recognize this?
Please Log in or Create an account to join the conversation.
- Wafa Jafar
-
- Offline
- New Member
- Posts: 1
I am facing the same problem, I just read this post tried everything written here. in the media manager the limit increased to 100MB but the file is taking time to upload, in k2 the limit is not increasing, it is still 10MB, so there must be something that should be done in the k2. nothing to do with joomla or our server.
So any suggestions please?
Please Log in or Create an account to join the conversation.
- Mahmut Arslan
-
- Offline
- New Member
- Posts: 1
upload_max_filesize = 50M ;post_max_size = 60M ;
You can change it to a value higher than 10M but you may want to find out what the max upload is from your webhost.Also, post_max_size, needs to be higher than upload_max_filesize.
forum.joomla.org/viewtopic.php?p=1421032
adublin
Please Log in or Create an account to join the conversation.
- Manos Krokos
-
- Offline
- Junior Member
- Posts: 39
So size has increased for both joomla media editor AND K2
Please Log in or Create an account to join the conversation.