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

Feature Request: Support for Chunked Uploads in Asset Library #1186

Open
ceesvanegmond opened this issue Jun 24, 2024 · 0 comments
Open

Feature Request: Support for Chunked Uploads in Asset Library #1186

ceesvanegmond opened this issue Jun 24, 2024 · 0 comments

Comments

@ceesvanegmond
Copy link

Title: Feature Request: Support for Chunked Uploads in Asset Library

Description:

Hello Statamic team,

I hope you are doing well. I would like to request a feature that would significantly enhance the functionality and usability of the asset library, especially when dealing with large files.

Request:
Is it possible to implement support for chunked file uploads in the asset library when connected to an S3 bucket? S3 (or similar) already allows for bigger files to store. For instance if I want to upload a 1GB file within the asset manager I have to set some nginx and php custom config for this to happen which is not really managable and handy.

Rationale:
Chunked file uploads allow for large files to be uploaded in smaller, more manageable pieces, which can significantly improve the upload experience by:

  • Preventing timeouts and connection issues that are common with large file uploads.
  • Allowing for the upload process to be paused and resumed, enhancing reliability.
  • Reducing the strain on network resources, as smaller chunks are easier to handle and less prone to failure.

Use Case:
This feature would be particularly beneficial for users who need to upload large media files (videos, high-resolution images, etc.) to their Statamic-powered sites, ensuring a smoother and more reliable upload process.

Technical Considerations:
Implementing chunked uploads typically involves:

  1. Splitting the file into smaller chunks client-side.
  2. Uploading each chunk to the server sequentially or in parallel.
  3. Reassembling the chunks into a single file on the server.
  4. Handling any errors or interruptions to allow for retrying failed chunks.

Given that Statamic supports integration with S3 for asset storage, this feature would also require ensuring compatibility with S3's multipart upload capabilities.

Conclusion:
Adding support for chunked uploads would greatly enhance the robustness and reliability of large file uploads in Statamic, particularly for users leveraging S3 for their asset storage. I think it's already possible within Livewire so it shouldn't be super hard?

Thank you for considering this feature request. I am looking forward to your response and am happy to provide any further information or assistance if needed.

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