Closed adriennhem closed 1 year ago
Looks like there is no upload_large option in cloudinary_service.rb
def upload(key, io, filename: nil, checksum: nil, **options)
instrument :upload, key: key, checksum: checksum do
begin
extra_headers = checksum.nil? ? {} : {Headers::CONTENT_MD5 => checksum}
options = @options.merge(options)
Cloudinary::Uploader.upload(
io,
public_id: public_id_internal(key),
resource_type: resource_type(io, key),
context: {active_storage_key: key, checksum: checksum},
extra_headers: extra_headers,
**options
)
rescue CloudinaryException => e
raise ActiveStorage::IntegrityError, e.message, e.backtrace
end
end
end
yes currently upload_large is not supported via Active Storage but this is in our backlog to complete. I don't have an ETA right now but will keep you posted.
I have implemented support for ActiveStorage using the guide available at: https://cloudinary.com/documentation/rails_activestorage
I am getting a 413 error when attempting to upload a large video file > 100MB server-side. This is normal as per your documentation but does your implementation of ActiveStorage does not handle large files on its own?
Using a pretty basic code:
Any workaround?