2

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?

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

http://msdn.microsoft.com/en-us/library/websvcimaging.imaging.upload.aspx

  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? – Rahul Gokani Apr 27 '15 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 '15 at 6:42
0

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, privacy policy and cookie policy

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