Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
haiodo opened this issue Jun 19, 2024 — with Huly GitHub Staging · 0 comments
Open

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

haiodo opened this issue Jun 19, 2024 — with Huly GitHub Staging · 0 comments
Assignees

Comments

Copy link
Member

haiodo commented Jun 19, 2024

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:

  • Chrome 65 and above only supports same-origin download links.
  • Firefox only supports same-origin download links.

Huly®: UBERF-7322

@haiodo haiodo self-assigned this Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant