hcengineering / platform

Huly — All-in-One Project Management Platform (alternative to Linear, Jira, Slack, Notion, Motion)
https://huly.io
Eclipse Public License 2.0
7.37k stars 584 forks source link

Rework upload to use direct storage URIs if avaialble. #5857

Closed haiodo closed 1 month ago

haiodo commented 3 months ago

Upload process should be following:

  1. To improve upload performance, we need to have few steps, first create uploading Blob and return direct upload url.
  2. Do upload to url.
  3. Update blob with a proper information from storage.

Download process should be following:

  1. To prevent same-origin issue and just opening of document instead of download we need to provide a CF worker /files/ compatible API to access file.

Refs:

Huly®: UBERF-7322