move_uploaded_file not working for 2mb and more - php

I wanted to upload files greater than 2MB and I have changed php.ini as follows :
upload_max_filesize=20M
post_max_size=30M
Restarting Apache updates phpinfo() but files greater than 2MB are not yet being uploaded. What could be the reason?

Check that you updated the right php.ini, some servers accept having a php.ini for a certain folder

A similar question: Photo upload not uploading files bigger than 2MB
Basically you have to modify your php server's configuration as the link shows to you

Related

How can increase the file upload size in Moodle when I upload the Course file?

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.

PHP upload settings, max file upload and chunks

My host is on a shared server so therefore i cannot change the php.ini. My goal is to upload files of upto 100mb but the servers upload_max_filesize is set to 6mb which i cannot change..
My quetsion is, is it possible to bypass this by uploading in chunks using something like https://github.com/blueimp/jQuery-File-Upload?
Many thanks in advance.
Ok I've now figured it..
By default chunking is not enabled.. you have to enable it in the jquery options, here is the source to do that https://github.com/blueimp/jQuery-File-Upload/wiki/Chunked-file-uploads
For testing purposes i've changed my php.ini settings to accept only 1mb and i'm successfully loading files that surpass that max upload.

Can't upload large images on server

I'm using GD to resize/upload images.
On my local machine it works fine. Now on my server only small images can be uploaded, anything over 500kb returns a server error 500.
I don't know where to start, I was hoping someone could point me in the right direction as to where to start looking for a solution.
check your php.ini for upload_max_filesize, this should work.
Have you tried looking in your server's php.ini file? If you have access to it then you can change the accepted upload file size.
Example:
; Maximum allowed size for uploaded files.
upload_max_filesize = 700M
Check your php.ini file, specifically the settings for post_max_size and upload_max_filesize and set them to the largest size you want the server to accept.

Ajaxplorer - HTTP Error 404

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

can't uploading large files with php

i'm testing a website on my localhost not on the server
in php.ini max file size is 128 mb but i can't upload a 26 mb flv file it doesn't give me an error or anything the page just refreshes and nothing happens it doesn't upload but small large files are uploaded successfully any advice ?
Check upload_max_filesize and post_max_size in php.ini, .htaccess and web-server config. Make sure you're editing correct php.ini.
Yes, you'll need to ask to the hosting support via ticket. The limits depends from your hosting plan.

Categories