checkout-files icon indicating copy to clipboard operation
checkout-files copied to clipboard

use format:raw for files outside format:json limit

Open jordanmnunez opened this issue 2 years ago • 1 comments

Closes https://github.com/Bhacaz/checkout-files/issues/3 Builds on the idea of PR: https://github.com/Bhacaz/checkout-files/pull/9

format: raw will return files up to 10MB. This pr provides a way to fallback to a format: raw request if there is no decoded content in a file expected to have content.

jordanmnunez avatar Feb 10 '23 02:02 jordanmnunez

@jordanmnunez Thanks for the PR very appreciated 😄 .

Works fine as it's!

I have a question, can we just always use the mediaType: raw? This will prevent to sometimes do 2 API call if the file is bigger than 1mb.

I'll wait for your response about my question, otherwise this is good to go!

Bhacaz avatar Feb 10 '23 16:02 Bhacaz