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

    Solved File Manager Upload Overwrite & Rename

    Feature Requests
    filemanager
    2
    4
    186
    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.
    • robi
      robi last edited by girish

      @nebulon

      The CL FM will accept for upload a nice large file, then once it finishes and realizes there is another file by the same name, it will ask if one wants to Overwrite.

      So far so good, however if you click the overwrite button, the upload starts again.

      Then, after it finishes the 2nd upload, it asks you if you want to Rename the file?!?

      Then, you only end up with the file you uploaded, but were seemingly forced to rename it. 💪😄👎

      Life of Advanced Technology

      nebulon 1 Reply Last reply Reply Quote 1
      • nebulon
        nebulon Staff @robi last edited by

        @robi I admit this is far from smart, but was just a fast way to deal with it. The filemanager was not built in mind for uploading large files, but more like managing config files. Will see what can be done to fix this better.

        1 Reply Last reply Reply Quote 1
        • Moved from Support by  nebulon nebulon 
        • robi
          robi last edited by

          Cloudron backups are pretty good if mistakes are made.

          How about check filename dup first and pop up the modal for Overwrite, if yes, move the temp file and overwrite, if no, move the temp file to .1, .2, .3 etc..

          Definitely avoid a second upload.

          Life of Advanced Technology

          1 Reply Last reply Reply Quote 1
          • nebulon
            nebulon Staff last edited by

            This is now fixed for the next version. On upload conflict, the code will add .n to the filepath, whereas n is an increasing number until no conflict is found.

            1 Reply Last reply Reply Quote 2
            • Topic has been marked as a question  nebulon nebulon 
            • Topic has been marked as solved  nebulon nebulon 
            • First post
              Last post
            Powered by NodeBB