1.0.12 • Published 1 year ago

@simpleimg/uploader-js v1.0.12

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Simple Image Cloud - Uploader for Javascript

This module helps you integrate Simple Image Cloud with your Web App with pure Javascript. It allows users to upload images, manage and edit them from their devices, without any backend code.

Install

Embed our client library via the <script> tag in the <head> section of each page where you’d like to use Simple Image Cloud Uploader.

<script data-api-key="[YOUR_API_KEY]"
	data-lang="en-us"
	data-selector="simpleimg-uploader"
	src="https://static.simpleimg.io/uploader-js/index.js"></script>

You can define some global variables to customize the behavior of the uploader.

PropertyRequiredTypeComment
data-api-keyrequiredstringSimple Image Cloud API Key.
data-langoptional'en-us' \| 'pt-br'Define uploader language.
data-selectoroptionalstringDefine custom selector.
data-useroptionalstringSet user partition.

Quick Usage - Single Image (HTML)

  • Value is going to be settled to value attribute.
  • It will returns string if value is string and data-max = 1 | undefined.
  • If no value, an empty string will be returned.
	<input data-simple-img-uploader
        type="hidden"
        value="https://demo.simpleimg.io/image-1.jpg"/>

Documentation

You can find the documentation for the Uploader JS Component here.

Quick Usage - Multiple Images (HTML)

  • Value is going to be settled to value attribute.
  • It will returns comma separated string if value is comma separated string, or if data-max > 1.
  • If you set data-max=2 and provide 3 images, it will returns 2 images.
  • If no value, an empty string will be returned.
	<input data-simple-img-uploader
		data-max="2"
        type="hidden"
        value="https://demo.simpleimg.io/image-1.jpg,https://demo.simpleimg.io/image-2.jpg"/>

Feedback

We want to hear your issue reports and feature requests at support@simpleimagecloud.com

1.0.11

1 year ago

1.0.12

1 year ago

1.0.10

2 years ago

1.0.2

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago