Developer's Guide

Stashbox provides some simple functionality for remotely activating file storage commands via HTTP request, as follows. For each upload type, a list of inputs is provided; all listed inputs are required.

Uploading from Local Machine

Inputs:
  • upload_type=local_file
  • wants_rss=1 (forces output/results to xml)
  • file=contents_of_file
  • is_public=boolean (display on Stashbox?)

Uploading from URL

Inputs:
  • upload_type=remote_file
  • wants_rss=1 (forces output/results to xml)
  • file=url
  • is_public=boolean (display on Stashbox?)

Uploading Text

Inputs:
  • upload_type=text
  • wants_rss=1 (forces output/results to xml)
  • file=text_contents
  • is_public=boolean (display on Stashbox?)

Output

In all successful cases, Stashbox will return XML that looks like this:
<upload>
  <filename>myfile.png</filename>
  <url>http://stashbox.org/123/myfile.png</url>
  <!-- if the file is an image, this tag will be included as well -->
  <thumburl>http://stashbox.org/123/1/myfile.png</thumburl>
  <know_code>40 character string here</know_code>
</upload>

In the case of an a error, Stashbox will return the following:
<upload>
  <error>some error msg</error>
</upload>

I will add more later. -Dan
eee