I'm planning to create an web file upload to SharePoint for a web application currently under development . The idea is the user would provide the endpoint to his SharePoint server, provide username/password and the app would get a list of the folders in his document library. User then would select where to upload document, provide the file and the tool would perform the upload. The SharePoint endpoint is not known (is user input). We can assume will be used with valid endpoints.
Authentication will be oauth based. App is going to be in php, so probably would need to access SharePoint web services, but not sure what functionality I should expect, my question is: Is there a way to achieve this?. I'm open to any suggestion.