Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jquintozamora
committed
Dec 21, 2017
1 parent
cc28e47
commit a2a685c
Showing
8 changed files
with
24 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"cSpell.words": [ | ||
"permalink" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 14 additions & 16 deletions
30
...-into-office-365-using-javascript-jsom.md → ...-into-office-365-using-javascript-jsom.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,32 @@ | ||
--- | ||
title: Upload JSON Object as a File into OFfice 365 using JavaScript (JSOM) | ||
tags: | ||
- English | ||
url: 902.html | ||
layout: post | ||
title: Upload JSON Object as a File into Office 365 using JavaScript (JSOM) | ||
language: English | ||
permalink: upload-json-object-as-a-file-into-office-365-using-javascript-jsom | ||
id: 902 | ||
categories: | ||
- javascript | ||
- JSOM | ||
- Office 365 | ||
date: 2017-03-03 13:11:24 | ||
featuredImage: | ||
url: featured.png | ||
width: auto | ||
height: auto | ||
--- | ||
|
||
[![image](https://blog.josequinto.com/wp-content/uploads/2017/03/image_thumb.png "image")](https://blog.josequinto.com/wp-content/uploads/2017/03/image.png) | ||
|
||
Hi, | ||
|
||
In this post, I am going to show how to convert and upload a JSON Object into a SharePoint library using JavaScript Client Object Model. | ||
This post is intended to explain how to **convert** and upload a **JSON Object** into a SharePoint library using **JavaScript Client Object Model**. | ||
|
||
That approach will be valid using the code inside a SharePoint Web Part, will not be valid for SP Apps or JavaScript applications running outside of SharePoint context. | ||
|
||
Here you can see the code: | ||
<script src="https://gist.github.com/jquintozamora/9c64c12df47f151ff5e998e0e6dfba34.js"></script> | ||
|
||
| ||
|
||
I tested it in Chrome 56 and Internet Explorer 11 and it worked. | ||
> IMPORTANT: | ||
> | ||
I tested it in **Chrome 56** and **Internet Explorer 11** and it worked. | ||
| ||
> **IMPORTANT**: | ||
> If you want to upload other kind of documents (more that 2 MB). Then I recommend you take a look to this post: [http://sharepointcookies.com/2017/02/programmatically-uploading-large-files-client-side-to-sharepoint-2013/](http://sharepointcookies.com/2017/02/programmatically-uploading-large-files-client-side-to-sharepoint-2013/ "http://sharepointcookies.com/2017/02/programmatically-uploading-large-files-client-side-to-sharepoint-2013/") from my colleague [Kev](https://twitter.com/BeckettKev). | ||
Please, feel free to write a comment if that is not working in your specific scenario! | ||
|
||
[@jquintozamora](https://twitter.com/jquintozamora) | ||
| ||
Please, write a comment if that's not working in your specific scenario! |
Binary file added
BIN
+61.2 KB
...upload-json-object-as-a-file-into-office-365-using-javascript-jsom/featured.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.