Skip to content

Preview Files Before Uploading

Muah edited this page Nov 10, 2019 · 12 revisions

1 2

this requires preview_files_before_upload to be enabled, currently supported features

  • add more files or remove selected
  • add custom attributes ex.focal points

# Send Custom Options With Uploaded Files

  • we currently support sending
    • focal points (which are calculated from the top left x:0, y:0)

    • dimensions width & height

    • description

    • extra data

      // data sample
      
      [
          'focalPoint' => [
              'x' => 45,
              'y' => 50,
          ],
          'dimensions' => [
              'w' => 4000,
              'h' => 6000,
          ],
          'description' => 'yolo',
          'extra'       => [
              0 => [
                  'name' => 'tag',
                  'data' => 'awesome',
              ],
              1 => [
                  'name' => 'hello',
                  'data' => 'world',
              ],
          ],
      ]