-
AuthorPosts
-
December 26, 2014 at 6:28 pm #171534
in woocommerce they want you to add downloadable products via media library. I have large mp4 files that are 2 gigabytes. The media library limits you to 8 meg. How do i do this?
susan
December 26, 2014 at 8:14 pm #171568Hi Susan,
Thanks for writing in.
If you’re familiar with your hosting’s php configuration then you can actually add these at php.ini file.
upload_max_filesize = 3000M
post_max_size = 3000MOr if you have .htaccess file from your site’s root ( public_html/ or www/ ), you can edit it and add these.
php_value upload_max_filesize 3000M
php_value post_max_size 3000MThese should allow you to upload 3gb of file at a time. Though, I’m not sure if your host will allow that so it’s best to contact them for this matter.
Usually, with this large file, it’s a good idea to use FTP for uploading as it doesn’t have any limit. Example, you decided to create a folder at your site named /download/, and then upload your files on that folder. And then from your product, use the url http://yoursite.com/download/filename.mp4 as the downloadable file.
You can also obscure the folder name and filename for security. /download/49efe2/2e99b061f1beb85d86049efe29d5b527_filename.mp4
Hope these helps 🙂
December 27, 2014 at 7:04 am #171711Hi Team,
I am trying to follow what you suggest above.
first, I changed from a shared server to VPS, so I could do this. OK so I have 60 gigabyte of space. I get the part for putting in the url.
This I do not understand, so a bit more clarity would help:
I think I can get into my php.ini through my new cpanel. Correct? I saw this before in my old shared one & I can ask Hostgator people to help me with this part, so I can use the settings you suggest here, correct? Maybe that is the .hta access you mention above.
I assumed I would need to use ftp to put these upload files. I just do not know exactly where to put them & do I need to create separate folders for each product. Each product will have about 4 or 5 files.
This [[[/download/49efe2/2e99b061f1beb85d86049efe29d5b527_filename.mp4]]] what do I do with this for security? I am missing some pieces. Is this a different url to put in instead of the url [[[http://yoursite.com/download/filename.mp4 as the downloadable file]]]
You have given me hope.
Thanks so much.
Susan
December 27, 2014 at 8:28 am #171737Hi Susan,
Thanks for writing in,
First of all, if you don’t have much knowledge with server manangement and don’t want to mess with it, I advise you to ask assistance to your hosting server, php.ini is a configuration file of your PHP, the .htaccess file is a directory level configuration which you can also modify the PHP settings for certain directory, in short, php.ini is your global PHP configuration while .htaccess is directory level configuration in apache based server.
The directory you wanted to put your file is up to you, and it doesn’t matter where you put it, if you are using FTP, you can put it anywhere you want, but if you use wordpress media uploader, it will be added on your default upload folder which is located inside wp-content/uploads/[year]/[date] unless you modify the upload directory.
this /download/49efe2/2e99b061f1beb85d86049efe29d5b527_filename.mp4 simply means creating a very unique file name of your video so it can’t be simply guess and remembered by the people who downloaded it (though I think woocommerce provide an encrypted link for downloadable products).
If you are using the FTP to upload your files, you just need to get the correct URL of that file and add it on woocommerce FILE URL FIELD, like if you decide to upload your files in 49efe2 folder inside the wordpress upload folder using ftp, then the file url should look something like this,
http://yoursite.com/wp-content/uploads/49efe2/the-file-filename.mp4
Hope that helps and clarify.
Have a great day
December 27, 2014 at 2:18 pm #171875This reply has been marked as private.December 27, 2014 at 6:56 pm #171981Hey Susan,
Yes, that is correct.’
Thanks.
December 29, 2014 at 6:28 am #172661Hi team!
Works great & thanks so much.
Just two more basic questions. I need to do a sandbox trial to make sure paypal works.
1. Do I have to publish my product pages to do that trial? I think I may have to.Also, I noticed that most support for my site & woo commerce is through forums, even when I purchased extensions from them, which can take days to resolve technical issues.
2. Is there a way to turn off the store temporarily until issues get resolved? I cannot see anything in woo commerce settings page other than putting a notice on your site.
Susan
December 29, 2014 at 8:40 am #172745Hi there,
Thanks for writing in!
#1. You will need some sample product pages to test PayPal sandbox transaction. Following resources may help you to get more details (https://clickwp.com/blog/woocommerce-paypal-sandbox/), (http://docs.woothemes.com/document/paypal-standard/).
#2. Please refer to the following resource to turn off store (https://support.woothemes.com/hc/communities/public/questions/201213747-Turning-off-the-store-remove-add-to-cart-buttons-).
Hope that helps.
-
AuthorPosts