how can i upload and unzip large size file such a size 30-35mb.what is limitation of file size on server.
when i upload zip file of 32mb it's show
The connection was reset
The connection to the server was reset while the page was loading.
The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
my code is available on this link
how to unzip uploaded zip file?
There is a setting called upload_max_filesize in PHP. You will have to change that value.
EDIT:
As lanzz mentions below there is another relevant setting called post_max_size which limits the maximum amount of POST data which will be processed / may be sent by/to PHP.
Related
I am uploading a zip file there but it says Error connecting to the server and I have changed the php.ini memory_limit = 9024m
There are a few places that might cause this upload issue.
I would suggest looking at your PHP.ini file to make sure that the setting there is correct.
Check the apache side as well.
With regards to increasing moodle upload sizes here is the doc: Moodle Doc
Edit 1: Error connecting to server is the default Moodle error it prints when your upload file is either too big or takes too long to upload, thus your connection times out.
Is there a restriction on the file size to send through the REST API?
I have a file field in a web form in my Drupal Website and sending the uploaded file to the SugarCRM application through REST API using base64_encode function.
This is working fine for the small files. But when we try to upload files around 2 MB the file, it is sending an empty value.
Is there a limit on file size that can be sent through REST API? If so, is there any other way I can send a big file(at least 2MB) to my SugarCRM application?
Google did not help me this time. If someone could, that would be great.
If you have root access on your machine, this is the most reliable and universal approach to increasing the maximum file upload. Find the php.ini file. The most common location for php.ini is /etc/php.ini. If the file is not there, you can determine where php.ini lives by using the phpinfo() function.
Once you've located php.ini, there are two settings you need to change, the max post size and max file upload size.
Maximum size of POST data that PHP will accept.
post_max_size = 2M;
Maximum allowed size for uploaded files.
upload_max_filesize = 2M;
Change these values to the maximum upload size you would like to allow. After making the changes check that the changes have been applied by checking phpinfo()
in your admin panel, you need to edit upload.php file to increase the input upload value size.
your question is not clear, if you can - provide some code's that's are creating problems or post a error logs.
I am playing with plupload 2.1.3 and can't get it to complete an upload using their custom example. I get a 103, unable to move uploaded file. If I look in the upload directory I see the file I tried to upload listed as test.png.part. My php.ini lists /tmp as my upload_tmp_dir.
From this I gather that the permissions are correct (I even set everything to 777 temporarily -- go difference).
This is a fairly newly configured server so it may not be related to plupload.
You have to check your PHP configurations on php.ini file.
If your upload is constantly being interrupted you either need to increase the maximum upload size or the time before your PHP script times out. Check this variables:
post_max_size
upload_max_filesize
max_execution_time
You can either increase in your PHP configuration file or increase in your script using the ini_set function. Check the manual for more details. PHP Manual
Uploading files larger than around 100KB fails with 500 server error. The site is built on Laravel and is using AJAX for file uploading. Small files can be loaded without problems.
I have tested uploading with the same image that is scaled with GIMP to smaller than 100KB and another one which is scaled bigger than 100KB, so the problem cannot be file type or anything related to image itself instead the problem seems to be related only to file size.
I have checked php.ini for max memory, upload_max_filesize, post_max_size and all are fine. I have also checked that apache virtualhost is not having max file size configuration. I have checked apache logs and it shows only 500 server error without anymore details. I cannot find any clue in any other log file. I have debugged the jQuery to AJAX call and ensured that the called function on PHP side is not being called. I have tried to check Laravel configurations, but couldn't find anything that could be related.
Any ideas where the file size limit could be coming from? Or any ideas where to get more information where the 500 is coming from?
The reason was apache mod_fcgid which was limiting file upload size to 128KB by default.
I have a problem with the Ajaxplorer. I have configured it for uploading and downloading files and this is also working very well but just when the files are smaller than 100M. When I am trying to upload a bigger file there appears a I/O Error with an HTTP Error 404 (The upload is shown as completed but than the error appears).
Here is the configuration background:
PHP is running on a Windows Server 2008 R2
The max. uploading memory size is 2G (configured in the php.ini. This value is also shown in the
Ajaxplorer)
All relevant folder are writeable (i have configured the php session file and also in the
Ajaxplorer the temp file and after every uploading error i find in these directory a temporary
file so i think it´s writable)
Have you set your post_max_size as well?
--- php.net---
Sets max size of post data allowed. This setting also affects file upload.
To upload large files, this value must be larger than upload_max_filesize.
If memory limit is enabled by your configure script, memory_limit also
affects file uploading.
More info:
http://www.php.net/manual/en/ini.core.php#ini.post-max-size