Template too Large

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Template too Large

Postby centurian27 » 07. December 2015 18:34

I wanted to try out several templates before I load them up on Hostgator, but my localhost says they are too large (41mb) to upload. Where can I change the upload file size and what is the correct way to do this.

Thanks.
Michael
(Centurian)
centurian27
 
Posts: 4
Joined: 05. December 2015 15:33
Location: UK
Operating System: Windows 7

Re: Template too Large

Postby Nobbie » 07. December 2015 19:14

centurian27 wrote:I wanted to try out several templates before I load them up on Hostgator, but my localhost says they are too large (41mb) to upload. Where can I change the upload file size and what is the correct way to do this


If you are speaking about Xampp and PHP (what you did not mention), edit php.ini and look for "max_upload_size". Restart Apache after changing php.ini
Nobbie
 
Posts: 8779
Joined: 09. March 2008 13:04

Re: Template too Large

Postby centurian27 » 07. December 2015 20:59

Hello Nobie
Sorry I left out PHP. I did exactly what you suggested in php.ini and restarted Xampp, but still didn't let me upload the template. I got this instead.

Warning: POST Content-Length of 42874310 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

I don't know wheather that has anything to do with php.inin but it wont let me upload the template.

Thanks for replying by the way.
Michael
(Centurian)
centurian27
 
Posts: 4
Joined: 05. December 2015 15:33
Location: UK
Operating System: Windows 7

Re: Template too Large

Postby Altrea » 08. December 2015 01:28

Increase the php.ini setting "post_max_size" too.
btw: This error message is a beautiful example of an issue you can find solutions on google.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8298
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Template too Large

Postby centurian27 » 08. December 2015 14:57

It doesn't matter which search I do, here or on the net, I still get the same result.

I'll be skipping LocalHost and putting my domain on to Hostgator where it was going anyway.

Perhaps the guy's at Hostgator can expand the upload file size for me.

Thanks for your posts guy's.
Michael
(Centurian)
centurian27
 
Posts: 4
Joined: 05. December 2015 15:33
Location: UK
Operating System: Windows 7

Re: Template too Large

Postby Nobbie » 08. December 2015 17:11

centurian27 wrote:It doesn't matter which search I do, here or on the net, I still get the same result.


???

How could you edit php.ini and increase max_upload_size, when you cannot edit php.ini and increase post_max_size??
Nobbie
 
Posts: 8779
Joined: 09. March 2008 13:04

Re: Template too Large

Postby Altrea » 08. December 2015 19:04

must be magic :lol:
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8298
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 27 guests