•  
      story #8762 add attachment in modal
    Summary
    Empty
    add attachment in modal
    I can have the same functionnality as editing in artifact view.

    First step

    • A given File upload field can hold more than one file attachment. A user can add another "upload input", part of the same field. A user can also remove an "upload input", while keeping at least one "upload input" per field.
    • When uploading a file, it should be split into chunks. The first chunk will be sent using POST /artifact_temporary_files, then the following chunks will be sent using PUT /artifact_temporary_files/:id. The chunks will be appended to the same file.
    • When an error occured during an upload, the user can retry uploading.
    • A user can remove an uploaded file, which triggers a DELETE /artifact_temporary_files/:id.
    • when I click on the modal's "Submit" button, then the list of temporary files' ids will be sent with the PUT /artifacts/:id request. It will bind the files to the artifact.

    Second step

    • The existing limit (5) on total temporary files should be removed.
    • Instead, a new limit should be added: a given user should have a total file size quota that is the sum of all her temporary files' sizes. E.g. with a limit of 64 MB, if userA already has uploaded File1 of 33 MB, userA can upload File2 of 16 MB but cannot upload File3 of 32 MB.
    • A new query should be added to the existing REST route GET /artifact_temporary_files. It should respond with the remaining file size quota for the logged user.
    • The remaining file size quota for the logged user should be displayed near the file upload field.
    • A cron should be added. It will clean up temporary files that are older than (?).
    Empty
    Joris MASSON (jmasson)
    Status
    Empty
    Done
    Development
    • [ ] Does it involves User Interface? 
    • [ ] Are there any mockups?
    • [ ] Are permissions checked?
    • [ ] Does it need Javascript development?
    • [ ] Does it need a forge upgrade bucket?
    • [ ] Does it need to execute things in system events?
    • [ ] Does it impact project creation (templates)?
    • [ ] Is it exploratory?
    Empty
    Details
    #8762
    Sandra Echinard (sechinard)
    2016-02-02 17:26
    2016-01-08 11:00
    3244

    References

    Follow-ups

    User avatar
    Joris MASSON (jmasson)2016-02-02 17:26

    Integrated in Tuleap 8.10.99.58


    • Status changed from On going to Done
    • Category set to
    User avatar
    Joris MASSON (jmasson)2016-01-11 10:15
    • Status changed from Ready (stalled) to On going
    • CC list set to Joris MASSON (jmasson)
    User avatar
    • Acceptance criteria
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes
    User avatar
    • Acceptance criteria
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes
    User avatar
    • Acceptance criteria
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes