News:

Looking for documentation? Take a look on our wiki

Main Menu

Cannot upload larger media files than 10mb

Started by t68, February 02, 2014, 16:29:04 PM

Previous topic - Next topic

t68

Hi!
I´m getting into selling downloads but hit trouble when I want to upload ZIP-files using VM manager for Media Files. If I try to upload larger files than 10 mb I get an error message saying: "COM_VIRTUEMART_PRODUCT_FILES_ERR_UPLOAD_MAX_FILESIZE" and then "vmError: Tyvärr, detta är ingen giltig mediafil" (translate:this is no valid media file).
Files smaller than 10mb uploads just fine.
Joomla media manager is set to 100mb max size for uploads.
I suspect there is a limitation set by my hosting.
In the phpinfo this line says:
"upload_max_filesize   67108864   10485760" (first number is local value, second is master value).
Does this mean limitations set to approximately 67 mb and 10 mb? I get the error on file that is 42 mb, so 67 mb doesn´t seem to be in place for VM.
I cannot access a php.ini for my site. Guess I have to talk to my hosting. What shoult I tell them?

Thank´s for any help with this one!
Best Regards!
T68



[attachment cleanup by admin]

jenkinhill

Some (usually cheaper) hosts do not allow an override of php-ini values, and in your case I suspect that there is a fixed 10Mb max limit. On many cPanel servers you can put a php.ini file into your Joomla root to set a higher local value - but if the host has a fixed max value then it won't work. (an example of a host with a fixed max on most servers is Godaddy).
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

t68

#2
Thanks for your reply, Jenkin!
We´re hosted by Swedish FSdata, and their considered to be a decent and serious host. Not among the "cheap-bunch". Hopefully they can help me out.
But if I want to try to put my own php.ini in the Joomla root, how do I create that file and what would be in it?
I also have a .htaccess file in my joomla root. Anything I can do with that to adress this issue?.

Another thought: The only thing I need to work right now is getting a zip file into my secret folder so that it can be sold as a download. Is there anyway to copy it there manually and still make it work as a VM media file that can be sold as a download using my plugin for that? Maybe my hosting can put the file there for me.

t68

Update:
Victory! Without really knowing what I was messin with I edited the .htaccess file in my joomla root and just put this in it (after some findings in forum): php_value upload_max_filesize 100M

And voilá! At the next try i uploaded a 46 mb zipfile without problem in my media files!

But I'm a bit worried that I might have messed other stuff up by activating my .htaccess with just that line in it. Or is that just like some sort of override for just that one parameter and everythin else is running like before?


jenkinhill

That will be fine, but if you are going to fully implement Joomla & VirtueMart's native SEO then you may need to add your line to the SEF htaccess, which will be in the root initially as htaccess.txt
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

t68

Ah, I understand. Thanks for pointing that out!

Skickat från min HTC One via Tapatalk