Increasing video size
Does someone know where to increase video upload?
-
- · Baloo
- ·
Hello Will, by default in Una, there is no limit, if you have one, it comes from your server. in particular the php.ini file with the value of upload_max_filesize and post_max_size which must be incremented.
Note that I had problems with a memory_limit value < 512M with large files of 100 Mo and more. 512 is a value that seems to be fine for ffmpeg.exe.
You can count on a maximum, and then put a limit in UNA -
- · Will Monte
-
·
In reply to Baloo
- ·
Thanks brother, will look into it.
-
- · Will Monte
- ·
Hey Baloo, my UNA is set to...
Maximum file size limit is 1.5 GB
Where on UNA can i change it, i did to server, but apparently my video upload freezes as shown in pic....
93.2MB is the size of the video i'm trying to upload
-
- · Baloo
-
·
In reply to Will Monte
- ·
For this problem, it's just a line of code to add, see the problem here : https://github.com/unaio/una/issues/1468
the fix works I tested.
To impose a limit in Una, edit the member level in permission, you can impose it there.
-
- · Will Monte
- ·
Baloo will this will trip the changed outside error message?
-
- · Will Monte
- ·
Ok, i applied the fix, but still have same results...
-
- · Baloo
-
·
In reply to Will Monte
- ·
Try to post the same video directly in the feed, using simple upload and see if it goes through there.
-
- · Will Monte
-
·
In reply to Baloo
- ·
Hi Baloo, if you mean inserting the link, yes that works. But i'm trying to upload a video, by adding a video.
-
Did you clear UNA and browser caches after the change ?
-
- · Will Monte
- ·
Alex T⚜️ yes I did
-
- · Baloo
-
·
In reply to Will Monte
- ·
No, I meant not to download in an album but directly on the feed so use the simple uplaoder and not the new one.
The reason is that I did not have the problem of timeout even before fixing it with that one, only with the new uplaoder.
-
- · Will Monte
-
·
In reply to Baloo
- ·
What in the world, it worked using simple uploader. Wow I guess the video module is buggy. Oh well. Thank u brother man!
-
- · Baloo
-
·
In reply to Will Monte
- ·
With pleasure, but it shows that you still have the problem of timeout, and I do not see why the fix worked for me and not for you.
To be on, download my file and send it to inc/js/classes/
and empty your cache in console and in your browser
If that does not work, then the problem is elsewhere and it is good to say it. -
- · Will Monte
-
·
In reply to Baloo
- ·
Yep it worked, wonder if upgrades will overwrite these fixes
-
- · Senthur
-
·
In reply to Baloo
- ·
Hello Baloo, can you please tell where is the php.ini located? thank you.
-
-
·
LeonidS
-
·
In reply to Senthur
- ·
Hello Senthur !
If you have the SSH access you may execute the following command there:
whereis php
Usually, php.ini locates in the folder with the path like /usr/bin/php but it may be different in any server. Some hostings allow having the php.ini in the root folder of your site like public_html for the management of some server's settings.
-
·
LeonidS
-
- · omaticon
- ·
Has UNA implemented a block based upload system so that you don't have to set the PHP memory limit to the size of the maximum video you would like to upload? It's unrealistic to set the memory limit to 1GB to support a file upload.
-
Hello omaticon !
So you want to have the possibility to upload big files with 1 GB sizes even if the post_max_size and upload_fiesize parameters in your server have only for example 128Mb?
-
- · omaticon
-
·
In reply to LeonidS
- ·
Yes. This sort of upload support is common in modern scripts.
-
Don't work that way. Hosting providers have set limits for PHP to stop the abuse.
If you want full control over your UNA site, a VPS is best. You can decide on restrictions etc your self via SSH or a control panel. Unless you can find a hosting provider that does shared hosting designed to work with UNA only (I.E Server setup for the use of UNA accounts).
But like said VPS is better, especially with high traffic UNA sites. -
Mersey,
You are incorrect. You are 100% incorrect. There are a number of scripts that support uploading very large files with limited PHP memory allocations by means of performing block uploads of a file. Each block is a defined segment size of the file to be uploaded.
As for your comments about shared hosting and VPS... Well, please don't assume. I actually have my own systems in a colo. Just because I can allocate 32GB of RAM to a VM for UNA to support large file uploads does not mean I want to do so.
-
Hi, I was not assuming, just kind suggestions as you did not exactly provide much information in your OP.
-
-
·
Alex T⚜️
- ·
UNA doesn't require memory_limit to be bigger than upload_max_filesize for file uploads. You can have memory_limit set to 192M, while upload_max_filesize is set to 1024M.
However you need to have more memory for cron, video conversion will require memory more than upload_max_filesize
-
·
Alex T⚜️
-
- · omaticon
-
·
In reply to LeonidS
- ·
Leonid,
Here are a couple sites with code examples. It is referred to as "chunking" by some. Upload scripts that utilize this method has been around for at least 15 years. I would expect any social media platform that allows uploads of videos to utilize this methodology. Is it something we can get into the UNA 12 final release or added as a module?
https://code-boxx.com/upload-large-files-php/
https://www.tutorialspoint.com/how-to-upload-large-files-above-500mb-in-php -
Thank you for the suggestion, we'll implement it in the future:
https://github.com/unaio/una/issues/3162