This support forum is no longer in use. Please use the Cloudinary Community at to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

How can I set adv_ocr:document on an upload preset?



  • Official comment
    Danny Valentine

    Hi Gitahi.

    Thanks for your question. Certain advanced components of an upload preset need to be created via the API instead, as the UI has some limitations. I've gone ahead and created the Upload Preset unsigned_ocr_document in your account which uses adv_ocr:document, using the following little Node script:

      { name: "unsigned_ocr_document", 
        unsigned: true, 
        invalidate: true,
        use_filename: true,
        unique_filename: true,
        type: 'upload',
        ocr: 'adv_ocr:document',
        auto_tagging: '0.7',
        access_control: '[{"access_type":"token"}]'
        .then(result => {console.log(result)})
        .catch(error => {console.log(error)});

    I hope this helps. Please let me know if you encounter any issues.

    Many thanks,

    Comment actions Permalink
  • Avatar
    Gitahi Ng'ang'a

    This works. Thank you.

    Comment actions Permalink

Post is closed for comments.