Closed DarioJahnel closed 3 years ago
Hi! first of all thank you for this library, super easy to use!
How can I can I set the filename I upload? I tried doing this (sharepoint site is in spanish)
JSONObject payload = new JSONObject(); payload.put("Nombre", nombreArchivo); payload.put("nombre", nombreArchivo); payload.put("name", nombreArchivo); payload.put("Name", nombreArchivo); JSONObject result = wrapper.uploadFile(spSiteUrl + spFolder + spBackupFolder, archivo, payload);
but it always uploads the file as "null"
Ok I figured it out
payload.put("FileLeafRef", fileName);
This method was added to fix that problem: /**
Where fileName is the final name of the upload file.
Hi! first of all thank you for this library, super easy to use!
How can I can I set the filename I upload? I tried doing this (sharepoint site is in spanish)
but it always uploads the file as "null"