1.0.13 • Published 7 years ago

jquery-photo-uploader v1.0.13

Weekly downloads
94
License
MIT
Repository
github
Last release
7 years ago

jQuery Photo Uploader

jQuery Plugin for uploading local photos and capturing from a webcam

plugin preview

Run Conditions

PhotoUploader detects whether webcam capture is possible.

  • If webcam capture is possible, then the use may choose between file upload, or live capture
  • If webcam capture is not possible, then the user may only choose to upload a file.

Usage

DOM

PhotoUploader requires an empty <div> element on which to bind.

JavaScript

PhotoUploader must be initialized on the result of a jQuery Selector before use.

  window.YourApp.photoUploader = $("#photoUploader").PhotoUploader({
    url: window.YourApp.root + "/APIEndPointForPOST",
    maxPhotoSize: "2MB"
   });

To display a PhotoUploader, simply call the bashow() function of the already initialized PhotoUploader.

  $("#uploadImageButton").click(function(){
    window.YourApp.photoUploader.show();
  })

Server Side

PhotoUploader will POST the captured / selected image as a Base64 Encoded png to the endpoint defined by the url option.

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago