Upload to Nextcloud via Webdav OCS API - MKCOL ist not allowed

Options
devben
devben Member
edited October 2023 in ? Working with APIs

I want to upload files to a Nextcloud Instance. Before I can Upload I need to create the folders if they dont exist. Typically on a WebDAV u use MKCOL but using this method I get this error:

code: ERROR_CODE_INPUT_ERROR,message: Input "MKCOL" is not one of the allowable values.,param: method

So looks like the method is not allowed? Really?😔

Comments

  • Chris Coleman
    Chris Coleman Administrator

    ADMIN

    Options

    Hi, @devben. Can you share a little bit more about where you're seeing this error? From what you've provided here, it seems to indicate that maybe you're using an Enum input and MKCOL is not one of the options allowed, but I'm not quite familiar with what you're referring to, so just want to make sure I'm looking in the right place.