Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Upload Files > 30mb

Posted on 2010-09-10
15
1,867 Views
Last Modified: 2013-12-13
I have a flex upload module I made, it uses php and mysql on windows IIS 7

smaller files < 30mb work perfectly, files get uploaded to php and php puts them in the database.

However files > 30 mb fail with this error in the console.

Fleet Pic.zip
_urlReq.url  = https://myURL.com/upload.php
_urlReq.data  = pin=9824
ioErrorHandler: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2038: File I/O Error. URL: https://myURL.com.com/upload.php"]

Any ideas? This is meant as a tool for my users who cant send large files via email due to restrictions

I changes the php.ini settings & mysql Max Packet size to reflect 100mb limit
0
Comment
Question by:cardilion
  • 7
  • 6
  • 2
15 Comments
 
LVL 31

Expert Comment

by:Marco Gasi
ID: 33647457
just write this two lines in the .htaccess file at the root folder

SECFILTERENGINE OFF
SECFILTERSCANPOST OFF
0
 

Author Comment

by:cardilion
ID: 33647516
Is there a .htaccess file on IIS 7?   the only thing i could see is web.config
0
 
LVL 20

Expert Comment

by:ChristoferDutz
ID: 33647591
If you want to add that file to a MySQL database (Just because you mentioned that in your post) the maximum packet size of MySQL could be what's limiting you. You can increase this in your my.ini
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 31

Accepted Solution

by:
Marco Gasi earned 250 total points
ID: 33647600
Sorry: I've not noticed that you use IIS7. To set limit in IIS look at : http://developers.de/blogs/andreas_lehmann/archive/2009/06/24/set-max-upload-size-for-iis7-web-applications.aspx?CommentPosted=true#commentmessage
 Hope this helps and excuse me for mistake :-)
0
 
LVL 20

Assisted Solution

by:ChristoferDutz
ChristoferDutz earned 250 total points
ID: 33647722
It seems that the default here is indeed slightly below 30 MB you can also configure this using the management snap in (Gui Config)
http://dwnz.spaces.live.com/Blog/cns!BCC0973FC7B19D91!643.entry

Or from the console:
http://weblogs.asp.net/steveschofield/archive/2007/05/11/iis7-post-40-adjusting-file-upload-size-in-iis7.aspx
0
 

Author Comment

by:cardilion
ID: 33647951
Right now I want to limit my users to 50 mb to see how well it performs, but i tried to leave room to expand
MySQL -   MAX_ALLOWED_PACKET = 134217728

PHP -
max_execution_time            300 300
max_file_uploads                  20 20
max_input_nesting_level       64 64
max_input_time                    120 120
memory_limit                       128M 128M
post_max_size                    55M 55M
upload_max_filesize            50M 50M

IIS - I ran this cmd inetsrv\appcmd set config -section:requestFiltering -requestLimits.maxAllowedContentLength:1073741824

and webconfig looks like this

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <httpRedirect enabled="false" destination="https://myURL.com" exactDestination="true" childOnly="true" />
     <security>
        <requestFiltering>
          <requestLimits maxAllowedContentLength="52428800" />
        </requestFiltering>  
      </security>
    </system.webServer>
</configuration>

I still have a 2038 I/O error, is this a flash/code problem or a webserver issue?
0
 
LVL 20

Expert Comment

by:ChristoferDutz
ID: 33648386
Could this be the

max_file_uploads                  20 20

I think I understood this parameter as that it's allowed to have 20 File-Uploads per HTTP Post and each of them is allwed to be 20 MB big.
0
 
LVL 20

Expert Comment

by:ChristoferDutz
ID: 33648407
Ups ... forgett my last post ... but the doubling of the parameters really looks strange to me.
0
 

Author Comment

by:cardilion
ID: 33649627
yea I just copied the parameters from phpinfo( ); it lists local value and master value
0
 

Author Comment

by:cardilion
ID: 33650361
Ok after some testing i found out the Maximum File upload is 41.3mb

anything larger returns 2038 I/O error
0
 

Author Comment

by:cardilion
ID: 33650469
ok also i tried a http upload form and found got the same results which i think rules out my flex/flash code.     When i use the http form i get http status error 500 instead of displaying my query error
0
 
LVL 20

Expert Comment

by:ChristoferDutz
ID: 33652651
Do you get any other information (Error message) together with your code 500? Perhaps an "out Of Memory"? Depending on how you send the data, the server has to save the entire data in memory before being able to dump it somewhere.
0
 

Author Comment

by:cardilion
ID: 33661979
This all i get, when i turn off user friendly error messages i get a blank screen.

"The website cannot display the page
 HTTP 500  
   Most likely causes:
•The website is under maintenance.
•The website has a programming error.


This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying."
0
 
LVL 20

Expert Comment

by:ChristoferDutz
ID: 33672448
Have to admit that I haven't got any more ideas besides having a look at the server logs.
0
 

Author Closing Comment

by:cardilion
ID: 33673471
Not a complete solution
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question