•  
     
    story #11296 upload files by chunk instead of fat form submit
Summary
Empty
upload files by chunk instead of fat form submit

I can handle arbitrary file number and size and control it server side

Functionaly nothing change for the end user: the drop files and it's uploaded on the server.

Technically:

2 new REST routes:

  • POST to create the file
    • the version is "un-published" until all chunks are uploaded
    • there cannot be 2 concurrent upload of version for the same file
  • PATCH to send chunks
    • Last chunk is identified so the file can be marked as published
    • If patch > to a configured size a 400 error is thrown an uploaded chunks are discarded

In addition to that, in SYSTEM_CHECK (every 30 minutes) files partially uploaded not published are discareded (given a resonnable delay to avoid discarding a file being currently uploaded).

Empty
Empty
Status
Empty
Canceled
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
#11296
Manuel Vacelet (vaceletm)
2018-12-20 10:27
2018-03-22 09:55
4102

References
Referencing story #11296
Referenced by story #11296

Follow-ups