Solved

php changing max file upload size

Posted on 2010-08-25
6
872 Views
Last Modified: 2012-08-14
Hello,

I'm using doteasy to host my website and I'm trying to figure out how to change the max file upload size.  It's currently set to 8388608 bytes but I need more since I'm storing videos.  I can't find a php.ini file anywhere, is this not possible with doteasy?
0
Comment
Question by:cgray1223
  • 3
  • 2
6 Comments
 
LVL 2

Expert Comment

by:dfendig
ID: 33518781
https://kb.doteasy.com/questions/285/Does+Doteasy+have+a+maximum+file+size+for+transfers+to+the+FTP+server%3F

Doteasy has no limit to upload file size to ftp except for the space you have on your account.
If you're using the websites file uploader, I would recommend getting a ftp program like WinSCP.
http://winscp.net/
just start session enter in the ftp host, username and password, all of which should be found on your doteasy account page.

If you are trying to change html code for users to upload bigger file sizes, you should put something like this in the html code.
<input type="hidden" name ="MAX_FILE_SIZE" value="2000000">
you should probably use ftp though as HTML uploads of large files is bad for server performance.
0
 

Author Comment

by:cgray1223
ID: 33518905
I get POST Content-Length of 26246328 bytes exceeds the limit of 8388608 bytes, that would lead me to believe the server is enforcing that right?  I'm using a flash plugin to upload to php.  The plugin has max file size set to 100mb....
0
 
LVL 2

Accepted Solution

by:
dfendig earned 500 total points
ID: 33518929
I'm not surprised the Server is enforcing it. Doteasy is among those webhosts that won't allow you to change your php.ini or .htaccess files without calling them and asking them to do it for you (many reasons for this). Doteasy enforces a maximum upload size for anything except ftp to avoid affecting server performance. WinSCP is free and easy to use if you don't have a nice ide like dreamweaver.
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:cgray1223
ID: 33518935
I can just use their admin tool if I have to upload files manually.  I was hoping to have my website support adding some video files by the admin user.  Thanks for the info.
0
 
LVL 2

Expert Comment

by:dfendig
ID: 33518975
In that case you would need to write some php code to open a stream and write the file in small buffered sizes, but WinSCP is easy, and I would suggest setting up a limited access ftp account for your admin user to be able to ftp files directly
0
 
LVL 5

Expert Comment

by:wmadrid1
ID: 33520081
I think ie the default PHP max upload configuration, please upload info.php to the serve and navigate it trough internet explorer.

Search the word "upload_max_filesize"

If the problem is this value, you can change it trought the file .htaccess


info.php
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now