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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Maximum upload size

    Nextcloud
    3
    8
    302
    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.
    • archos
      archos last edited by

      Hi, is it possible to increase the maximum upload file size? And where is this file located, somehow I can't find it. Thank you very much.

      A 1 Reply Last reply Reply Quote 0
      • A
        ApplegateR @archos last edited by

        @archos I believe it edit in php.ini in file manager

        Go check file manager then that should be show php after edit restart the app will take affect

        Richard Applegate
        Anthem Coffee and Tea
        The Joint Chiropractic
        IT/Administrator Server/Network

        1 Reply Last reply Reply Quote 2
        • girish
          girish Staff last edited by girish

          The default in nextcloud package are already quite high.

          RUN crudini --set /etc/php/7.4/apache2/php.ini PHP upload_max_filesize 5G && \
              crudini --set /etc/php/7.4/apache2/php.ini PHP post_max_size 5G && \
          

          Do you need more than above? Also, check /app/data/.htaccess as well which is a htaccess file nextcloud auto-generates for the data directory. (Note: confusingly, there is also a /app/data/htaccess which is for the code directory).

          archos 1 Reply Last reply Reply Quote 2
          • archos
            archos @girish last edited by

            @girish Thank you for your reply. I'm working abroad and I have bad internet at the guesthouse. So I wanted to upload some movies to Nextcloud. So I was wondering if there was a problem increasing the max upload to 10GB

            A 1 Reply Last reply Reply Quote 0
            • A
              ApplegateR @archos last edited by

              @archos there no problem but make sure higher ram that can run movie.. and space

              Richard Applegate
              Anthem Coffee and Tea
              The Joint Chiropractic
              IT/Administrator Server/Network

              archos 1 Reply Last reply Reply Quote 2
              • archos
                archos @ApplegateR last edited by

                @ApplegateR Thank you for the information. So it's enough just to add in the file manager to php.ini code, which gave here @girish ?

                RUN crudini --set /etc/php/7.4/apache2/php.ini PHP upload_max_filesize 10G && \
                    crudini --set /etc/php/7.4/apache2/php.ini PHP post_max_size 5G && \
                
                girish 1 Reply Last reply Reply Quote 0
                • girish
                  girish Staff @archos last edited by

                  @archos You have to edit /app/data/php.ini and add something like:

                  [PHP]
                  upload_max_filesize=10G
                  post_max_size=10G
                  

                  And restart the app.

                  archos 1 Reply Last reply Reply Quote 2
                  • archos
                    archos @girish last edited by

                    @girish Great, it's settled. Thank you both so much.

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post
                    Powered by NodeBB