Quantcast
Viewing all articles
Browse latest Browse all 25064

best approach for Uploading document to doc lib from a local machine[ remote machine]

hi,

 would like to know which is the best approach for uploading a file from my local machine[or remote machine] to a  remote SP 2013  site collection 's doc.lib with taxonomy column:

i have filtered out the below:

1) create a web service in VS 2010-->asp.net 3.5 Frwrk-->create a  web service appln -->write the below code for copy.asmx web service

[WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class FileUploadWebService : System.Web.Services.WebService
    {
        [WebMethod]
        public bool UploadDocumenttoDocLib(string localfilePath,string taxonomyName)
        {
            bool blnSuccess =false;
//perform copy.aspx WS methods here


            return blnSuccess;
        }
    }

deploy the web service in a remote server and access  it  from my local from a web UI/winforms/console appln

i having a doubt  if the  size of the file exceeds 5 mb, wont it be  causing the out of memory  exception ?

////////////////////////////////////////////////////////////////


2) use  SPservices.codeplex.com's ites  spservices  library  to upload 

3) SP2013  CSOM :  if  i am using this  approach, what are the APIs  available:

any help is appreciated:



Viewing all articles
Browse latest Browse all 25064

Trending Articles