Put File

Summary This method used to upload a file to the server
Request https://www.digitalbucket.net/api/rest/putfile.axd?folderid=64&filename=SC01.jpg
Method PUT
Parameters folderid (id of the folder that you want to upload this file in), filename (the name of the uploaded file), you have to set the Request Entity attribute to the file input stream.

Success

<Success>
  <Code>23</Code>
  <Message>file uploaded successfully.</Message>
</Success>

Error

<Error>
  <Code>-41</Code>
  <Message>You have reached your storage quota.</Message>
</Error>
<Error>
  <Code>-42</Code>
  <Message>You have reached your bandwidth quota.</Message>
</Error>
<Error>
  <Code>-43</Code>
  <Message>Your plan does not allow to upload a file with this size.</Message>
</Error>
<Error>
  <Code>-202</Code>
  <Message>You are not allowed to create a new file here.</Message>
</Error>
<Error>
  <Code>-221</Code>
  <Message>Invalid file name.</Message>
</Error>
<Error>
  <Code>-222</Code>
  <Message>New files are not allowed here.</Message>
</Error>
<Error>
  <Code>-223</Code>
  <Message>Only image files can be uploaded to photo albums.</Message>
</Error>

- For other errors refer to the list of Common Errors.