PHP File Size

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
mohamedismail
-


Joined: 30 Sep 2013
Posts: 3
Location: Schaumburg, IL.

PostPosted: Mon Sep 30, 2013 10:45 am    Post subject: PHP File Size Reply with quote

What is the maximum size of a file that can be uploaded using PHP and how can we change this?
_________________
Drupal Developers | Drupal Development
Back to top View user's profile Send private message Visit poster's website
aprelium-support
-


Joined: 20 Feb 2009
Posts: 356

PostPosted: Tue Oct 01, 2013 2:39 pm    Post subject: Re: PHP File Size Reply with quote

mohamedismail wrote:
What is the maximum size of a file that can be uploaded using PHP and how can we change this?


A reply from the Drupal forums: https://drupal.org/node/97193 .
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Visit poster's website
Shena
-


Joined: 09 Dec 2013
Posts: 2
Location: New York, USA

PostPosted: Wed Dec 11, 2013 3:41 am    Post subject: Reply with quote

upload_max_filesize indicates the maximum uploaded file.
Find upload_max_filesize, the default is to 8M
upload_max_filesize = 100M

It should be noted that, of the more than post_max_size upload_max_filesize settings as well.
Back to top View user's profile Send private message
elvieqsquire
-


Joined: 02 Jan 2014
Posts: 2

PostPosted: Sat Jan 04, 2014 3:23 pm    Post subject: Reply with quote

Were you guys able to utilize that much capacity?
_________________
:)
Back to top View user's profile Send private message
Gleedaniel13
-


Joined: 25 Jul 2013
Posts: 22

PostPosted: Thu Jan 09, 2014 1:37 pm    Post subject: Reply with quote

Quote:
upload_max_filesize indicates the maximum uploaded file.
Find upload_max_filesize, the default is to 8M
upload_max_filesize = 100M

It should be noted that, of the more than post_max_size upload_max_filesize settings as well.


I do not understand this explanation. Could you emphasize it so well?
_________________
Web Design Integration
Back to top View user's profile Send private message Visit poster's website
aprelium-support
-


Joined: 20 Feb 2009
Posts: 356

PostPosted: Sat Jan 18, 2014 8:47 am    Post subject: Reply with quote

Gleedaniel13 wrote:

upload_max_filesize = 100M


This is a parameter that should be changed inside your php.ini file.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Visit poster's website
Toasty
-


Joined: 21 Feb 2008
Posts: 298
Location: Chicago, IL

PostPosted: Mon Jan 27, 2014 7:02 pm    Post subject: Reply with quote

Currently, it seems there is a 2GB cap on uploads, but there are several things that can interfere with that:

In your PHP.INI file:

upload_max_filesize
post_max_size

These should be the same, the files are technically "POSTed" and that directive will regulate the file size.

There are also methods of expressing the file size limitation on forms (which I presume you're not doing, as it is a bad idea).

Further more, the PHP code itself may be hard coded to prohibit file uploads of a certain size, or the allotted partition may not be large enough to handle the files.

Overall, any large files are best left to FTP uploads, even though PHP 5.6.0a1 adds support for filesizes larger than 2GB.
_________________
Audit the secure configuration of your server headers!
Back to top View user's profile Send private message Visit poster's website
Outstndngguy
-


Joined: 17 Oct 2018
Posts: 1

PostPosted: Tue Nov 06, 2018 11:18 am    Post subject: Reply with quote

I didn't want to create a whole topic because my problem isn't huge

when I am putting these symbols in the field at my website - " and / they are automatically decoding into &quot

Do I have some decoding issue? Whenever I put this symbols they are transforming into that
_________________
Newbie at aprelium
Back to top View user's profile Send private message Visit poster's website
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1295

PostPosted: Wed Nov 14, 2018 4:41 pm    Post subject: Reply with quote

Outstndngguy wrote:
I didn't want to create a whole topic because my problem isn't huge

when I am putting these symbols in the field at my website - " and / they are automatically decoding into &quot

Do I have some decoding issue? Whenever I put this symbols they are transforming into that


This is a completely different question, you should have posted it in a separate thread. Anyway, it looks like HTML special chars were converted during the submission.

All depends on the context, but this could be done by something on the client side (the browser) or the server-side (your script).

More about HTML entities and how they are converted could be found in https://secure.php.net/manual/en/function.htmlspecialchars.php .
_________________
Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group