Facebook
From Paltry Bushbaby, 2 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 67
  1. window.cloudinary.createUploadWidget({
  2.   uploadPreset: '{{ config('services.cloudinary.preset') }}',
  3.   sources: ['local'],
  4.   multiple: false,
  5.   cropping: true,
  6.   croppingAspectRatio: 1,
  7.   resourceType: 'image',
  8.   showPoweredBy: false,
  9.   clientAllowedFormats: ['jpg', 'jpeg', 'png'],
  10. }, (error, result) => {
  11.   if (result && result.event === 'success' && result.info.coordinates) {
  12.     alert('ok')
  13.   }
  14. }).open(null, { files: ['https://img.k3cdn.com/b/2008728/2021082614189905385822w800h800_750x750.jpg'] })