Uploading video files to IIS 7 through php fails - php

I'm trying to get my website to upload video's and pictures. As I have made more websites that upload pictures there is no problem on that front, but when i try to upload a video for some reason it can't be found in the $_FILES array that contains an uploaded image.
I have already googled and found stuff about the php.ini file and IIS 7 containing max sizes for uploads. these are all set to 1024M:
In php.ini:
max_execution_time = 1000
max_input_time = 1000
memory_limit = 256M
upload_max_filesize = 1024M
post_max_size = 1024M
In IIS 7:
maxAllowedContentLength = 1073741824
maxRequestLength = 1073741824
After some testing it appears that really small video files do work (192KB) but somewhat bigger doesnt show anyting in the $_FILES array (11MB) but really big files (80MB) gives an error: The request filtering module is configured to deny a request that exceeds the request content length.. The problem is that i have set the maxAllowedContentLength to 1GB. So that shouldn't happen?! An image of this is down below:
Image
Any help or advice is greatly appriciated!

The answer was given on ServerFault: ServerFault - Uploading video files to IIS 7 through php fails. Hope this helps if you have this same problem.

Related

Server issue with large file upload?

I have a dedicated server Linux WHM/Cpanel that hosts a video streaming website. I have a form to upload videos and I've been trying to upload larger files but failing? I've checked error logs and nothing is leading me in the right direction. Below are my php.ini settings
upload_max_filesize = 1200M
post_max_size = 1200M
max_input_vars = 1000
memory_limit = -1
max_file_uploads = 20
max_execution_time = 7200
max_input_time = 7200
max_input_vars = 1000
I can upload a 100MB file just fine but the movies i have can be up to 1gb. I'm using Plupload to upload files. I've tested several small size files and they upload fine. When I try to upload large movies e.g. 300mb, Plupload returns this error HTTP Error. Upload URL might be wrong or doesn't exist. and this is the only clue I have. Plupload uses chunking to split up large files also.
This only happens with larger files. It's really a nuisance also, since I have to upload large files all over again to see if my changes are successful or not.
Any ideas? Why would it work with a smaller size file but not larger? I have no errors to work from.
HTTP Error is common when there is something wrong with the files being uploaded. Please check your server info with php.ini
upload_max_filesize is the limit of any single file.
post_max_size is the limit of the entire body of the request,
Sometimes the server requires post_max_size greater than upload_max_filesize I might be wrong but I have to check.
Try debugging the issue removing the chunking first and then later add the chunking part when you remove those HTTP errors.

Getting an error 413 Request Entity Too Large while using a plugin Croppic

I am using a jquery plugin CROPPIC to my web application to crop and compress the pictures before uploading them to database.
While I am using it I am able to crop and upload the picture size below 1MB but size above 1MB gives me an error in the console panel which is 413 Request Entity Too Large.
Form more information I am working in PHP language. When I searched about the issue I came across various solutions like put some of the codes to my php.ini file.
max_input_time = 24000
max_execution_time = 24000
upload_max_filesize = 12000M
post_max_size = 24000M
memory_limit = 120000M
client_max_body_size 24000M
max_file_uploads = 20
php_value
post_max_size 104857600
But all of these things are not working. If you like you can have a look to my project at http://www.bookiiee.com/ad_post.php and can ask more. Please help me out of this. I am working on the same issue for more than 2 days.
You need to increase the LimitRequestBody directive. Example:
LimitRequestBody 0

Uploading a specific photo causes ERR_CONNECTION_RESET, PHP

I have a page on my website that I can upload multiple large photos to through an html form, processed with PHP. Everything works great - I am able to upload dozens of files at once (my max so far has been about 150).
However, there have been two separate instances where I got the dreaded ERR_CONNECTION_RESET error because of ONE image in the bunch. I don't think there is anything different about the image... it's the same file type and was taken on the same day by the same camera with the same dimensions and DPI.
I tried to upload that one image by itself, but I got the same error. Here is the photo for you to examine if necessary.
My php.ini file:
file_uploads = On
max_file_uploads = 300
max_execution_time = 999999
max_input_time = 999999
post_max_size = 80M
upload_max_filesize = 80M
memory_limit = 50G
What could be so different about this image that would cause it not to upload?

Randomly Images are uploaded of 0 bytes PHP

I recently setup load balancing for my website wordpress blog 2 back-end nodes with HAproxy. Now i am facing a very strange issue. Images are uploading of 0 Bytes randomly.Some images are uploading fine and some are not.This issue happens when I upload post through window live writer.
When I retry 0 Bytes Images they uploaded successfully.
PHP Configuration
file_uploads = On
upload_max_filesize = 8M
max_file_uploads = 40
post_max_size = 8M
max_input_time = 60
Images uploaded through WP or Window Live writer uploaded to server then using lsyncd images sent to the image server.
I am not able to figure out the issue. Please help me to solve the issue.
Thanks
I would check following:
image uploaded on one server but being use on another (make sure your file processed within one request)
upload data time limit is too short
PS: could you be more specific in your question, describe software you are using, add you config. It will help to localize the issue.

What is max size of file to upload using jQuery-File-Upload, can i upload more than 5 gb of file size using jQuery-File-Upload?

I have jQuery-File-Upload running on my server. Problem is that, last time i tried to upload 4gb file that fails to upload. How i can push the limits of max file size? I think under 2gb file uploads with no problem. Server is shared and php 32bit version is installed. and at server php.ini settings are:
memory_limit = 128M
upload_max_filesize = 10240M
post_max_size = 10240M
max_execution_time 120
max_input_time 60
please any one help me to solve this problem. i m searching to solve the problem from 2 days but no luck. and i don't want to go to java applet solution. it would be better if i can fix this problem using file chunking, html5 techniques etc.
And if any of my friend have any experience of solving this kind of problem using jQuery-File-Upload, please share. Any kind of help will be appreciated. Thanks
Yes you can upload upto 5 GB,In your PHP Code add the following
ini_set('set_memory_limit', -1);
If you do this, You can set others as well in your PHP code.

Categories