I want to upload multiple images to picture library using JavaScript.
I am building SharePoint hosted app. In which I have created a Picture Library in side Project Solution using Visual Studio and also I have added images in the same.

No I want to upload those image from my solution to picture library using JavaScript.

I have followed this blog. But that has example which uploads file from file upload control. That is user needs to browse file and that file is going to be uploaded.

But I want to upload those files from my solution package.

How could I achieve that?


2 Answers 2

  1. You can use server side code to upload images through imagining web service:


  1. Only file input () can convert the file into bytes and send them to server side.

So you have to use it or fileupload control in asp.net.

  • So I can not do this using JavaScript? Apr 27, 2015 at 10:50
  • I think you can because using JS u can insert to lists also,so this should be possible,but i haven't tried my self.
    – mzonerz
    Apr 28, 2015 at 6:42

You can upload the image to picture library using REST or JSOM.

solution using REST, find here.

And using JSOM, find here.

please upvote if this answer helped you in any way.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.