Skip to content

"Not enough free space" when uploading: Sometimes no freeSpace calculation #27367

Closed

Description

@andreas-p

Somewhere between 20.0.1 and 20.0.9, the calculation of freespace when uploading was changed.

I'm using an app that uploads to not-yet-existing directories, relying on NC creating them implicitely which works fine, unless freeSpace is not calculated (and thus 0) which happens in this case.

Previously, file-upload.js OC.FileUpload.add() would just use the global freeSpace from $('#free_space').val(). Now, freeSpace is initialized as 0, and calculated for some data scenarios. If those scenarios are not met, it will remain 0, failing the upload with "Not enough free space".

freeSpace should be initialized to the global freeSpace as before, and then recalculated for specific situations to make sure freeSpace is valid in all situations.

Activity

  1. added
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    on Jun 3, 2021
  2. szaimen commented on Jul 7, 2021

    @szaimen
    Contributor

    Hi, please post this on https://help.nextcloud.com/c/dev/11. Thanks!

  3. andreas-p commented on Jul 7, 2021

    @andreas-p
    Author

    @szaimen this wasn't a request for help but a bug report. I don't understand that redirect. AFAICS bugs in the files app should go here.

  4. szaimen commented on Jul 7, 2021

    @szaimen
    Contributor

    Please post it there nonetheless. Thanks!

  5. andreas-p commented on Jul 7, 2021

    @andreas-p
    Author

    @szaimen would you mind to explain to me why I should post core bug reports to the developer help forum?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions