•  
      request #14969 Document fails to upload too large files
    Infos
    #14969
    Thomas Gorka (tgorka)
    2020-06-17 10:39
    2020-06-10 11:11
    15921
    Details
    Document fails to upload too large files

    Context

    When the user drops a large file, for instance a .ova file, then an error modal pops up saying "this item is not a file".

     

    What's happening

    In order to determine whether the item dragged from the user's file manager is a file and not a folder, we use FileReader to parse it:

    • Either it fails -> the item is a folder
    • Either it succeeds -> the item is a file

     

    It works well until it comes to large files like archives or VM images, FileReader crashes, hence the error "Item is not a file"

     

    Solution

    Let's consider items having a size greater than 0 as files, it will greatly reduce the delay bewteen the drop event and the beginning of the upload.

    Nevertheless, we should still rely on FileReader to know if the item dropped by the user is whether an empty file or a folder.

    Doc/Documentation manager
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gorka (tgorka)
    Closed
    2020-06-17
    Attachments
    Empty
    References
    Referencing request #14969
    Referenced by request #14969

    Artifact Tracker v5

    Follow-ups

    • User avatar
      Thomas Gerbet (tgerbet)2020-06-17 10:39
      Integrated into Tuleap 11.15.99.150.

      • Status changed from Under review to Closed
      • Connected artifacts
      • Close date set to 2020-06-17
    • User avatar
      Thomas Gorka (tgorka)2020-06-10 11:14

      gerrit #19185 is under review and should close this issue


      • Status changed from Under implementation to Under review