Upload User Avatar from android to WordPress using Rest API

I am developing an android app that give users ability to browse , register, login, post and comment to my wordpress blog using Rest Api .

I am trying now to add a way for users to update their avatars , but i have no idea how to upload media to my blog

 add_action('rest_api_init', function () {    register_rest_route( 'wp/v2', 'upload_image/',array(                 'methods'  => 'POST',                 'callback' => 'upload_image' )); });   function upload_image( $  path ) {      // NO IDEA HERE  }    

Unable to upload to SharePoint Online via VBA

I have tried using the below code to upload a document to SharePoint Online (Sourced from this answer)

Dim SharepointAddress As String Dim LocalAddress As String Dim objNet As Object Dim FS As Object  ' Where you will enter Sharepoint location path SharepointAddress = "\sharepoint path to document library"  & "\"    ' Where you will enter the file path, ex: Excel file LocalAddress = "H:/test.gif"   Set objNet = CreateObject("WScript.Network") Set FS = CreateObject("Scripting.FileSystemObject") If FS.FileExists(LocalAddress) Then     FS.CopyFile LocalAddress, SharepointAddress End If Set objNet = Nothing Set FS = Nothing 

I have signed in to the SharePoint Online site using my work credentials and then navigated to the library and copied the address from the URL bar to paste into the above code, however when I try to run the procedure I am getting an error message saying Run Time Error 76: Path not found

Does anyone know what I am doing wrong? Thanks

Blocking Upload button on a modern site

I have no access to SPFX, or any dev tasks , else this would be breeze. Has anyone at all successfully blocked the upload button and new button (not to be even seen) and allow a user to edit the document, rename the document and delete the document ? It would be miracle if anyone has successfully done this – I am banging my head with Sharepoint permissions and I cannot seem to be able rename without the Add document permission. And the add document permissions allows use of upload… any ideas what so ever ?

http file upload straight to the database (php library)

I need a php library that writes file straight to the database. The content of this file are people records (name/surnamr/dob etc).

I found few libraries that kinda does the job, but instead of writing to the database it writes to the disk:

  • Tus
  • Gargron/fileupload

None of the above have the option to write the file straight to the database. is there a php library out there that writes straight to the database?

This library needs to:

  • Write file content in chucks
  • write the content to db

By writing the file to the database, I mean read and write its content to the database without having to write the file to the disk first.

Sharepoint 2013 Upload image javascript from html canvas DataURL

I try to upload image from dom element with canvas ( html2canvas.js ). and then i get dataURL() from canvas to upload. Upload is successful but i cant open my file. like a without file extention.

Here my code ;

 html2canvas(document.getElementById("wedding1"), {     letterRendering: 1,     allowTaint: true,     onrendered: function(canvas) {       console.log(canvas);     }   }).then(canvas => {     var imageData = canvas.toDataURL("image/png");     imageData.replace(/^data:image\/(png|jpg);base64,/, "");     let canvasImg = document.getElementById("canvasimg");     canvasImg.appendChild(canvas);       this.uploadFile("selam.png", imageData);    }); uploadFile(name, content) {   var createitem = new SP.RequestExecutor(     _spPageContextInfo.webAbsoluteUrl   );   createitem.executeAsync({     url:       _spPageContextInfo.webAbsoluteUrl +       "/_api/web/GetFolderByServerRelativeUrl('/DuyuruDocument')/Files/Add(url='" +       name +       "',overwrite=true)",     method: "POST",     binaryStringRequestBody: true,     body: content,     success: function(e) {       alert("done");     },     error: function() {       alert("Error");     },     state: "Update"   }); }, 

Upload file from external web application to sharepoint online using REST service

I need to upload a file(including some additional meta data fields) to SharePoint Online from SAP UI5(SAP UI5 is a front-end user interface to build desktop/mobile applications and is based on HTML5 & Javascript library). The web application is not a sharepoint hosted, provider-hosted or auto-hosted… i.e., its installed/run outside of sharepoint site

Can i achieve this using SharePoint REST service? I’ve read that we can perform CRUD operations from client applications using REST webservices in OData format using ‘HTTP Requests’. Or should i make jQuery/Ajax call to REST service?

Will I need OAuth, security token for user authentification for achieving this? Also is sharepoint username, password need to be configured in my app. do i need to use cross domain library, web proxy page etc, and what about the X-RequestDigest(do i have to pass form digest value) and how do i get this value in my application? Any help is appreciated