[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


PHP Upload problem

Posted on 2006-06-03
Medium Priority
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
  • 2

Expert Comment

ID: 16828916
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.

Accepted Solution

soapergem earned 300 total points
ID: 16828930

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

This article discusses how to create an extensible mechanism for linked drop downs.
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
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 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…
Suggested Courses
Course of the Month18 days, 23 hours left to enroll

834 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