Jump to content

Recommended Posts

Ok... so I'm working on my own CMS and I'm trying to upload various file types.  The default for uploads is set to 2M, but I've talked to my host and they said as long as I put a copy of the php.ini file in the directory I'm working with, the settings should be localized.

So I got the right copy of php.ini and put it in the directory with the necessary changes.  After doing that, I have these settings:
http://www.whproductions.com/admin/sources/media/iniget.php

ini file: http://www.whproductions.com/admin/sources/media/php.ini

For some reason, memory limit won't read anything even though the setting is there.

I can upload files less than 2M, but anything over that reports back as having zero for the filesize and my script kicks it out as invalid.

I have this in the form:
    <input type="hidden" name="MAX_FILE_SIZE" value="999000000" />

But it still doesn't seem to make a difference no matter how big I make that number.

Can someone help me out here?  Why can't I upload files bigger than 2M when the settings all seem to be correct?
Link to comment
https://forums.phpfreaks.com/topic/32877-solved-file-uploads/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.