Jump to content

[SOLVED] file uploads


ober

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.