Upload Files > 30mb

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
cardilionAsked:
Who is Participating?
 
Marco GasiFreelancerCommented:
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
 
Marco GasiFreelancerCommented:
just write this two lines in the .htaccess file at the root folder

SECFILTERENGINE OFF
SECFILTERSCANPOST OFF
0
 
cardilionAuthor Commented:
Is there a .htaccess file on IIS 7?   the only thing i could see is web.config
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
ChristoferDutzCommented:
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
 
ChristoferDutzCommented:
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
 
cardilionAuthor Commented:
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
 
ChristoferDutzCommented:
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
 
ChristoferDutzCommented:
Ups ... forgett my last post ... but the doubling of the parameters really looks strange to me.
0
 
cardilionAuthor Commented:
yea I just copied the parameters from phpinfo( ); it lists local value and master value
0
 
cardilionAuthor Commented:
Ok after some testing i found out the Maximum File upload is 41.3mb

anything larger returns 2038 I/O error
0
 
cardilionAuthor Commented:
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
 
ChristoferDutzCommented:
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
 
cardilionAuthor Commented:
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
 
ChristoferDutzCommented:
Have to admit that I haven't got any more ideas besides having a look at the server logs.
0
 
cardilionAuthor Commented:
Not a complete solution
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.