Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Increase Media Upload Size

    General Discussion
    3
    7
    1226
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      ryanlen last edited by

      Is there a way to increase media upload size beyond just a maximum of 2MB? Cause I do have animated GIFs that exceed 2MB but can't upload as a media. Using FTP is a bypass method but I can't see it in the media library. Any help would be great! Thanks in advance!

      1 Reply Last reply Reply Quote 0
      • mariusjopen
        mariusjopen Global Moderator last edited by

        Hi @ryanlen

        Some people have tried using the htaccess method where by modifying the .htaccess file in the root directory, you can increase the maximum upload size in WordPress. Open or create the .htaccess file in the root folder and add the following code:

        php_value upload_max_filesize 64M
        php_value post_max_size 64M
        php_value max_execution_time 300
        php_value max_input_time 300
        

        Let me know if that worked for you!

        Best!

        Marius

        www.mariusjopen.world

        R 1 Reply Last reply Reply Quote 0
        • R
          ryanlen @mariusjopen last edited by

          @mariusjopen said in Increase Media Upload Size:

          php_value upload_max_filesize 64M
          php_value post_max_size 64M
          php_value max_execution_time 300
          php_value max_input_time 300

          Hey Marius,

          Is this the only method? Tried it but it crashed my site. Not sure what I did wrong. Haha. :/

          1 Reply Last reply Reply Quote 0
          • mariusjopen
            mariusjopen Global Moderator last edited by

            Hi @ryanlen

            You can try to add this to your config.php file:

            
            define('WP_MEMORY_LIMIT', '64M');
            
            

            Let me know if that works!

            Best :-)

            Marius

            www.mariusjopen.world

            R 1 Reply Last reply Reply Quote 0
            • R
              ryanlen @mariusjopen last edited by

              @mariusjopen Hey Marius,
              sorry for my delayed response. Tried to include the line in my wp-config.php file but it didn't work.

              Was wondering if there are any other ways? Apologies for this troublesome request.

              1 Reply Last reply Reply Quote 0
              • silly.berlin
                silly.berlin last edited by

                @mariusjopen and others
                Hi, have somebody found a way to increase the upload limit yet? I tried several way I found, nothing worked out for me (functions.php, config.php, .htaccess, php.ini).
                Thanks for helping :)

                1 Reply Last reply Reply Quote 0
                • mariusjopen
                  mariusjopen Global Moderator last edited by

                  Dear @ryanlen
                  best is to contact your provider – it really depends on that sometimes.

                  Best!

                  Marius

                  www.mariusjopen.world

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post

                  Before you post

                  Use the Search Feature. Maybe there is already a solution to your issue.

                  1. Update Lay Theme and all Lay Theme Addons
                  2. Disable all Plugins
                  3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
                  4. Now see if your problem solved itself
                  5. Go here, see if your problem is listed here:
                  Troubleshooting

                  When you post:
                  1. Post a link to where the problem is
                  2. If the problem is difficult to explain, post screenshots / link to a video to explain it

                  Thanks!

                  Online Users

                  S
                  M
                  Z

                  Recent Topics

                  • M

                    komische boxen auf der Website

                  • S

                    Theme crashed - because of Polylang?

                  • J

                    Split Screen just on front page / subpages without the split?

                  laytheme.com