Diff: [root] @ 1071b4876bc | faq | css


File deleted: 33188 howto/ajax-dump [Diff]

diff --git a/howto/ajax-dump b/howto/ajax-dump
deleted file mode 100644
index b760795..0000000
-- a/howto/ajax-dump
++ /dev/null
@@ -1,35 +0,0 @@
h1. How to use dump.bitcheese.net to asynchronously upload files

1. Generate an unique token for your upload, sending GET request to @http://dump.bitcheese.net/gentoken@

bc. % curl http://dump.bitcheese.net/gentoken

2. Add this token as @token@ form field when uploading a file

bc. % curl -F file=@file -F token=nuxyzud<...>wyfumonuso http://dump.bitcheese.net/upload-file?simple

3. If you want to query progress of file upload, you can send GET request to @http://dump.bitcheese.net/gettoken/$token@

bc. curl http://dump.bitcheese.net/gettoken/nuxyzu<...>fumonuso

This returns either an empty string (if file isn't uploaded yet or token doesn't exist) or relative path to file, like @files/urobos/file@

@gentoken@ and @gettoken@ are also available in JS format, just append "?format=js" to URI:

bc. % curl http://dump.bitcheese.net/gentoken?format=js

bc. % curl http://dump.bitcheese.net/gettoken/nuxyzud<...>umonuso?format=js
uploader.callback("images/uwegyra/font.png", {

Fields should be self-descriptive.
\ No newline at end of file

File created: 40960 howto/ajax-dump [Diff]

diff --git a/howto/ajax-dump b/howto/ajax-dump
new file mode 120000
index 0000000..f53d4b0
-- /dev/null
++ b/howto/ajax-dump
@@ -0,0 +1 @@
\ No newline at end of file

By Voker57 on 2012-02-03 21:37:59 +0400 Powered by bitcheese wiki engine