Đứcuploadcare/uploadcare-rails
Rails API client that handles uploads and further operations with files by wrapping Uploadcare Upload and REST APIs.
🚀 uploadcare-rails — Tích hợp Uploadcare vào Ruby on Rails
Gem Ruby on Rails hỗ trợ upload file qua Uploadcare, tích hợp sâu với model, Active Storage và Web Components.
uploadcare-rails là gem tích hợp Uploadcare cho Ruby on Rails, dựa trên thư viện uploadcare-ruby được viết lại. Phiên bản ổn định hiện tại là 5.0. Gem tập trung vào việc cung cấp client Uploadcare mặc định, hỗ trợ đa tài khoản, tích hợp với model thông qua has_uploadcare_file và has_uploadcare_files, cùng các helper form như uploadcare_file_field và uploadcare_files_field. Phiên bản này sử dụng Uploadcare File Uploader dựa trên Web Components.
✨ Điểm nổi bật
- Client mặc định ứng dụng:
Uploadcare::Rails.clientcung cấp client Uploadcare mặc định cấp ứng dụng. - Hỗ trợ đa tài khoản: Sử dụng
Uploadcare::Clientđể quản lý nhiều tài khoản Uploadcare. - Tích hợp model:
has_uploadcare_filevàhas_uploadcare_filesgán thuộc tính file vào model. - Helper form:
uploadcare_file_fieldvàuploadcare_files_fieldtạo trường uploader trong form. - Active Storage:
ActiveStorage::Service::UploadcareServicetích hợp Uploadcare với Active Storage. - Cấu hình linh hoạt: Cấu hình qua biến môi trường, file YAML, hoặc khối cấu hình trong code.
- Web Components: Sử dụng Uploadcare File Uploader dựa trên Web Components.
- Hỗ trợ Importmap: Cung cấp generator cài đặt uploader qua importmap-rails.
💡 Vì sao đáng chú ý
Gem này đơn giản hóa việc tích hợp dịch vụ lưu trữ đám mây Uploadcare vào ứng dụng Rails, giúp xử lý upload ảnh, video và quản lý file mà không cần viết API thủ công. Với hỗ trợ Active Storage, Web Components và linh hoạt cấu hình, đây là lựa chọn hiệu quả cho ứng dụng cần xử lý file đa dạng. Phù hợp với ứng dụng Rails hiện đại cần tích hợp dịch vụ CDN và quản lý nội dung đa phương tiện.
#RubyOnRails #Uploadcare #FileUpload #ActiveStorage #WebComponents #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.
A lightweight and very configurable jQuery plugin for file uploading using ajax(a sync); includes support for queues, progress tracking and drag and drop.
Uploadcare Widget, an ultimate tool for HTML5 file upload supporting multiple file upload, drag&drop, validation by file size/file extension/MIME file type, progress bar for file uploads, image preview.