How to upload file to local using thinksoftware Image Resize Client


Hi Everyone,

I want to add cropping functionality while I upload an image, I searched thorough atmosphere.js and found this thinksoftware/image-resize-client

I want to setup this at local server and I am not able to find any method in the available documentation or at github.

I also added check and slingshot as without them I am getting an error like “module not found”.

After successful compilation of the project,

I got the error “The directive myFileUploads does not seem to exist”, Also I added this code to create a directory

Slingshot.fileRestrictions("myFileUploads", {
  allowedFileTypes: ["image/png", "image/jpeg", "image/gif"],
  maxSize: 10 * 1024 * 1024 // 10 MB (use null for unlimited)

but this also don’t get me to any solution.

As this library has also support for third-party storage giants like AWS, Google, So, is it allowed to upload on local server?

Please help me to get a possible solution.