Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Increase upload max size in Nextcloud

Increase upload max size in Nextcloud

Scheduled Pinned Locked Moved Solved Support
9 Posts 6 Posters 2.8k Views 6 Watching
  • 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.
  • zjuhaszZ Offline
    zjuhaszZ Offline
    zjuhasz
    wrote on last edited by
    #1

    I'm getting an error when I try to upload large files (it won't tell me which file is failing so I'm not exactly sure how large) to Nextcloud. I think it has something to do with a general php setting (php.ini) and not something set in Nextcloud itself but I have no experience with php so I'm not sure.

    alt text

    I think if I can get the associated attribute here "Upload max size" to increase it will solve my problem but I don't know how to set it. This is under settings -> administration -> system

    1 Reply Last reply
    0
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      You can edit the htaccess file using the file manager into the app or the /app/data/htaccess file when using the webterminal and add

      php_value upload_max_filesize 10G
      

      to the <IfModule mod_php7.c> section (adjust the 10G to whatever works for your case)

      Then just refresh the browser and you should see the value updated.

      R S 2 Replies Last reply
      1
      • zjuhaszZ Offline
        zjuhaszZ Offline
        zjuhasz
        wrote on last edited by
        #3

        I think that worked, thanks. By the way, unrelated issue but it looks like the file browser is having trouble. When I go to file manager in Nextcloud config it says "Cloudron error file not found". This apps data was moved to a different disk on the system from the install disk so that might have something to do with it.

        Anyway I added the setting you said using the console and it seems to be working.

        1 Reply Last reply
        1
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #4

          Indeed that is a known bug and you can track that at https://git.cloudron.io/cloudron/box/-/issues/722
          We will fix this hopefully for version 5.5

          1 Reply Last reply
          1
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            This is fixed in 5.5. Should be out late this week or early next week.

            1 Reply Last reply
            0
            • nebulonN nebulon

              You can edit the htaccess file using the file manager into the app or the /app/data/htaccess file when using the webterminal and add

              php_value upload_max_filesize 10G
              

              to the <IfModule mod_php7.c> section (adjust the 10G to whatever works for your case)

              Then just refresh the browser and you should see the value updated.

              R Offline
              R Offline
              rcdncn
              wrote on last edited by
              #6

              @nebulon I just tried this myself and when I refreshed the browser the the php value did not update. I don't have to restart any services for this to take effect?

              R 1 Reply Last reply
              0
              • R rcdncn

                @nebulon I just tried this myself and when I refreshed the browser the the php value did not update. I don't have to restart any services for this to take effect?

                R Offline
                R Offline
                rcdncn
                wrote on last edited by
                #7

                @rcdncn

                An update. I goofed and it's working now. My first try I navigated to app/data/.htaccess and there was no

                <IfModule mod_php7.c>
                

                I noticed that there is both and htaccess and a .htaccess and I was in the incorrect file.

                1 Reply Last reply
                2
                • nebulonN nebulon

                  You can edit the htaccess file using the file manager into the app or the /app/data/htaccess file when using the webterminal and add

                  php_value upload_max_filesize 10G
                  

                  to the <IfModule mod_php7.c> section (adjust the 10G to whatever works for your case)

                  Then just refresh the browser and you should see the value updated.

                  S Offline
                  S Offline
                  SolarSimon
                  wrote last edited by
                  #8

                  Hi there,
                  I followed this discription:

                  @nebulon said in Increase upload max size in Nextcloud:

                  You can edit the htaccess file using the file manager into the app or the /app/data/htaccess file when using the webterminal and add

                  php_value upload_max_filesize 10G

                  to the <IfModule mod_php7.c> section (adjust the 10G to whatever works for your case)

                  Then just refresh the browser and you should see the value updated.

                  Is this still the correct and up-to-date method in the current Cloudron Nextcloud app?
                  Or has anything changed with newer PHP or app versions?

                  I also tried the instructions from the official documentation:
                  https://docs.nextcloud.com/server/stable/admin_manual/configuration_files/big_file_upload_configuration.html

                  Nextcloud comes with its own nextcloud/.htaccess file. Because php-fpm can’t read PHP settings in .htaccess these settings must be set in the nextcloud/.user.ini file.

                  Does this also apply to Nextcloud on Cloudron?
                  If so, where is the .user.ini file located within the Cloudron setup?

                  Thanks!

                  1 Reply Last reply
                  1
                  • jamesJ Offline
                    jamesJ Offline
                    james
                    Staff
                    wrote last edited by
                    #9

                    Hello @SolarSimon

                    Yes you can still use the described method with editing the /app/data/htaccess file.
                    Example excerpt from the /app/data/htaccess file limiting the upload to 1 KB:

                    <IfModule mod_php.c>
                      php_value default_charset 'UTF-8'
                      php_value output_buffering 0
                      php_value upload_max_filesize 1K
                      <IfModule mod_env.c>
                        SetEnv htaccessWorking true
                      </IfModule>
                    </IfModule>
                    

                    This can then also be checked in https://$YOUR-DOMAIN/settings/admin/serverinfo:

                    78631002-eb0e-4998-9cdd-560c42ce0d3f-image.png

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Bookmarks
                    • Search