Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7939029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:58:30+00:00 2026-06-03T22:58:30+00:00

I am uploading profile images to a directory on the server. The script works

  • 0

I am uploading profile images to a directory on the server. The script works fine, however I can’t seem to get anything but small file size images to upload. Anything above about 2mb fails. I don’t have access to the php.ini but I have added the following to htaccess with no luck. I have tried every other solution I can find online with no luck. Any ideas?

php_value upload_max_filesize 10M
php_value post_max_size 10M
php_value max_input_time 400
php_value max_execution_time 400
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T22:58:32+00:00Added an answer on June 3, 2026 at 10:58 pm

    First, check phpinfo() to see what the runtime settings are; if they still show 2M (default), Apache is probably not obeying the .htaccess file

    Normally I would tell you to make sure you have this in the virtual host declaration of your Apache configuration:

    AllowOverride Options FileInfo
    

    But being on a shared host doesn’t give you those permissions (highly unlikely). You should check with your hosting provider to see whether they can raise those limits for you by adding the php_value settings inside your virtual host

    Alternatively, work around the issue by chunking the upload files (e.g. upload 1MB at a time) as suggested by @Satya.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to forbid uploading of images less 300px x 300px? Script: http://valums.com/ajax-upload/
I can't get this working. Here's my code. <script type=text/javascript> function close() { window.opener.location.reload();
My project and web services work fine in the simulator but crash when uploading
i am uploading photo to application(or like) profile page. But it will show error
I am uploading an image to amazon S3 using php through webservice but it
Hi I am uploading image on php server and successfully uploaded with the help
I'm trying to uploading my app to apple through archive in xcode but i'm
Part of my webapp involves uploading image files. On the production server, the files
The script I have below is for users to upload a profile picture to
I am uploading images to S3 storage using paperclip gem. It uploads successfully. In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.