PHP Upload problem

Posted on 2006-06-03
Last Modified: 2013-12-12
Hi All!,

I want to upload 5MB file into the my web server.  in my php.ini file, max_file_uploads=2MB...  I asked my web admin to increase 5MB for upload.. he said , there is security reason... we should not allow to upload that much....

Is there any other way to upload more than 2 MB without changing php.ini settings.?

Please suggest me the solution....

thanks in advance....

Loganathan N
Bosco ITS, India
Question by:Loganathan Natarajan
    LVL 6

    Expert Comment

    If PHP is running as an Apache module and you can edit htaccess files, you could try this (put this in your .htaccess file):

    php_value upload_max_filesize 5M

    But this isn't guaranteed to work, it depends on how your admin has things set up. Also, if your admin has it set to 2MB, he's probably done so for a reason. Trying to change this value may be against the Terms of Service, so be careful.
    LVL 6

    Accepted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Both Easy and Powerful How easy is PHP? (  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    759 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

    7 Experts available now in Live!

    Get 1:1 Help Now