SPUpload – Sharepoint JQuery Lib for Uploading files to Document Libraries


Github link

SPUpload is a JQuery library that uploads documents easily to sharepoint libraries using the REST API. It also Utilises JQuery Promises.

It works through the html file input.

Getting Started

Just include SPUpload.js into your Assets Folder and reference it in your code.

Simply Upload a Document as Follows


Default Options

webURL : _spPageContextInfo.webAbsoluteUrl,
docLibrary : 'Documents',
folderName : '',
fileName : ''

The Success and failure can be check as follows

    //arguments variable according to the number of files available
    argument.forEach(function(item) {
        // do something with item
}).fail(function(jqXHR,error, errorThrown){
  // do something with the error

Map Network Drive on SharePoint Online Document Library


Login to SPO Site Using IE, Make sure keep me logged in is selected

Open IE -> Go to ‘Internet Options’
Select ‘Security’ tab -> Select ‘Internet’ Zone.
UnCheck the box for ‘Enable Protected Mode’

Make sure the ‘Web Client’ service is started on the client machine.
Open the SPO site -> go to the Document Library
Select ‘Open with Explorer’ [ Make sure this is working fine ] Copy the URL opened in explorer in the address bar
Delete IE Cache.
In IE ‘Trusted Sites’ zone add

Open Windows Explorer

Click On Map Network Drive

Paste the URL copied

Click Finish

Homebrew Warning: You have an outdated version of /usr/bin/install_name_tool installed.


When using homebrew, you may encounter this error when you run brew doctor :

Warning: You have an outdated version of /usr/bin/install_name_tool installed.
This will cause binary package installations to fail.
This can happen if you install osx-gcc-installer or RailsInstaller.
To restore it, you must reinstall OS X or restore the binary from
the OS packages.


Download mavericks or yosemite installer from the app store

Run the following scripts from the terminal :

open /Applications/Install\ OS\ X\ Mavericks.app/Contents/SharedSupport/InstallESD.dmg
open -a Pacifist /Volumes/OS\ X\ Install\ ESD/Packages/Essentials.pkg

Extract install_name_tool from the /usr/bin/ folder in packagist to your /usr/bin/ folder

Then your set to go