Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added main README.md file, added LICENSE file, removed node server, r…

…emoved bar files
  • Loading branch information...
commit afcb732630b9ff40567fd23883c34dffebfe74ad 1 parent 4fd870b
@haahmad haahmad authored
Showing with 268 additions and 28,433 deletions.
  1. +202 −0 LICENSE
  2. 0  README
  3. +54 −0 README.md
  4. +10 −5 fileTransfer/README.md
  5. +1 −1  fileTransfer/config.xml
  6. BIN  fileTransfer/device/filetransfer.bar
  7. +1 −14 fileTransfer/fileUpload.html
  8. BIN  fileTransfer/filetransfer.zip
  9. +0 −47 fileTransfer/node-upload-server/app.js
  10. +0 −9 fileTransfer/node-upload-server/node_modules/.bin/express
  11. +0 −6 fileTransfer/node-upload-server/node_modules/.bin/express.cmd
  12. +0 −6 fileTransfer/node-upload-server/node_modules/connect-form/.gitmodules
  13. +0 −28 fileTransfer/node-upload-server/node_modules/connect-form/History.md
  14. +0 −22 fileTransfer/node-upload-server/node_modules/connect-form/LICENSE
  15. +0 −11 fileTransfer/node-upload-server/node_modules/connect-form/Makefile
  16. +0 −35 fileTransfer/node-upload-server/node_modules/connect-form/Readme.md
  17. +0 −213 fileTransfer/node-upload-server/node_modules/connect-form/index.html
  18. +0 −100 fileTransfer/node-upload-server/node_modules/connect-form/lib/connect-form.js
  19. +0 −4 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/.npmignore
  20. +0 −4 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/.travis.yml
  21. +0 −14 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/Makefile
  22. +0 −311 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/Readme.md
  23. +0 −3  fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/TODO
  24. +0 −70 ...er/node-upload-server/node_modules/connect-form/node_modules/formidable/benchmark/bench-multipart-parser.js
  25. +0 −43 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/example/post.js
  26. +0 −48 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/example/upload.js
  27. +0 −1  fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/index.js
  28. +0 −73 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/lib/file.js
  29. +0 −384 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/lib/incoming_form.js
  30. +0 −3  fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/lib/index.js
  31. +0 −312 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/lib/multipart_parser.js
  32. +0 −25 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/lib/querystring_parser.js
  33. +0 −6 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/lib/util.js
  34. +0 −4 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/node-gently/Makefile
  35. +0 −167 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/node-gently/Readme.md
  36. +0 −22 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/node-gently/example/dog.js
  37. +0 −11 ...r/node-upload-server/node_modules/connect-form/node_modules/formidable/node-gently/example/event_emitter.js
  38. +0 −1  fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/node-gently/index.js
  39. +0 −184 ...nsfer/node-upload-server/node_modules/connect-form/node_modules/formidable/node-gently/lib/gently/gently.js
  40. +0 −1  ...ansfer/node-upload-server/node_modules/connect-form/node_modules/formidable/node-gently/lib/gently/index.js
  41. +0 −14 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/node-gently/package.json
  42. +0 −8 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/node-gently/test/common.js
  43. +0 −348 ...node-upload-server/node_modules/connect-form/node_modules/formidable/node-gently/test/simple/test-gently.js
  44. +0 −23 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/package.json
  45. +0 −19 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/test/common.js
  46. +0 −1  ...er/node-upload-server/node_modules/connect-form/node_modules/formidable/test/fixture/file/funkyfilename.txt
  47. +0 −1  fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/test/fixture/file/plain.txt
  48. +0 −3  ...erver/node_modules/connect-form/node_modules/formidable/test/fixture/http/special-chars-in-filename/info.md
  49. +0 −3  ...ransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/test/fixture/js/no-filename.js
  50. +0 −21 ...pload-server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
  51. +0 −72 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/test/fixture/multipart.js
  52. +0 −89 ...sfer/node-upload-server/node_modules/connect-form/node_modules/formidable/test/integration/test-fixtures.js
  53. +0 −24 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/test/legacy/common.js
  54. +0 −80 ...d-server/node_modules/connect-form/node_modules/formidable/test/legacy/integration/test-multipart-parser.js
  55. +0 −104 ...ansfer/node-upload-server/node_modules/connect-form/node_modules/formidable/test/legacy/simple/test-file.js
  56. +0 −727 ...de-upload-server/node_modules/connect-form/node_modules/formidable/test/legacy/simple/test-incoming-form.js
  57. +0 −50 ...upload-server/node_modules/connect-form/node_modules/formidable/test/legacy/simple/test-multipart-parser.js
  58. +0 −45 ...load-server/node_modules/connect-form/node_modules/formidable/test/legacy/simple/test-querystring-parser.js
  59. +0 −75 ...load-server/node_modules/connect-form/node_modules/formidable/test/legacy/system/test-multi-video-upload.js
  60. +0 −2  fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/test/run.js
  61. +0 −63 ...ansfer/node-upload-server/node_modules/connect-form/node_modules/formidable/test/unit/test-incoming-form.js
  62. +0 −47 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/tool/record.js
  63. +0 −9 fileTransfer/node-upload-server/node_modules/connect-form/package.json
  64. +0 −18 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/.gitmodules
  65. +0 −9 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/.npmignore
  66. +0 −120 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/History.md
  67. +0 −85 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/Makefile
  68. +0 −121 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/README.md
  69. +0 −79 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/benchmarks/graph
  70. +0 −19 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/benchmarks/hello-world/connect.js
  71. +0 −16 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/benchmarks/hello-world/node.js
  72. +0 −9 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/benchmarks/hello-world/rack.thin.ru
  73. +0 −10 ...ransfer/node-upload-server/node_modules/connect-form/support/connect/benchmarks/hello-world/sinatra.thin.ru
  74. +0 −19 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/benchmarks/public/jquery.js
  75. +0 −60 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/benchmarks/run
  76. +0 −10 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/benchmarks/static/connect.js
  77. +0 −17 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/benchmarks/static/node.js
  78. +0 −10 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/benchmarks/static/sinatra.thin.ru
  79. +0 −1,973 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/api.html
  80. +0 −27 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/bodyDecoder.1
  81. +0 −164 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/bodyDecoder.html
  82. +0 −11 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/bodyDecoder.md
  83. +0 −66 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/compiler.1
  84. +0 −193 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/compiler.html
  85. +0 −32 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/compiler.md
  86. +0 −16 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/conditionalGet.1
  87. +0 −158 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/conditionalGet.html
  88. +0 −7 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/conditionalGet.md
  89. +0 −27 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/cookieDecoder.1
  90. +0 −164 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/cookieDecoder.html
  91. +0 −11 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/cookieDecoder.md
  92. +0 −58 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/errorHandler.1
  93. +0 −181 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/errorHandler.html
  94. +0 −28 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/errorHandler.md
  95. +0 −7 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/format.1
  96. +0 −152 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/format.html
  97. +0 −3  fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/format.md
  98. +0 −260 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/index.1
  99. +0 −332 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/index.html
  100. +0 −171 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/index.md
  101. +0 −62 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/jsonrpc.1
  102. +0 −192 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/jsonrpc.html
  103. +0 −39 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/jsonrpc.md
  104. +0 −3  fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/layout/api.foot.html
  105. +0 −142 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/layout/api.head.html
  106. +0 −102 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/lint.1
  107. +0 −232 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/lint.html
  108. +0 −79 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/lint.md
  109. +0 −66 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/logger.1
  110. +0 −184 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/logger.html
  111. +0 −31 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/logger.md
  112. +0 −31 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/methodOverride.1
  113. +0 −171 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/methodOverride.html
  114. +0 −17 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/methodOverride.md
  115. +0 −7 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/responseTime.1
  116. +0 −152 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/responseTime.html
  117. +0 −3  fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/responseTime.md
  118. +0 −75 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/router.1
  119. +0 −211 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/router.html
  120. +0 −58 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/router.md
  121. +0 −115 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/session.1
  122. +0 −214 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/session.html
  123. +0 −55 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/session.md
  124. +0 −28 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/staticProvider.1
  125. +0 −162 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/staticProvider.html
  126. +0 −11 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/docs/staticProvider.md
  127. +0 −13 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/examples/error/app.js
  128. +0 −38 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/examples/jsonrpc/app.js
  129. +0 −21 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/examples/less/app.js
  130. +0 −8 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/examples/less/public/index.html
  131. +0 −8 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/examples/less/public/style.less
  132. +0 −40 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/examples/lint/app.js
  133. +0 −61 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/examples/multitouch/app.js
  134. +0 −73 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/examples/multitouch/public/client.js
  135. BIN  ...ransfer/node-upload-server/node_modules/connect-form/support/connect/examples/multitouch/public/favicon.ico
  136. +0 −16 ...Transfer/node-upload-server/node_modules/connect-form/support/connect/examples/multitouch/public/index.html
  137. +0 −113 ...Transfer/node-upload-server/node_modules/connect-form/support/connect/examples/multitouch/public/raphael.js
  138. +0 −23 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/examples/multitouch/public/style.css
  139. +0 −63 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/examples/router/app.js
  140. +0 −21 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/examples/sass/app.js
  141. +0 −8 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/examples/sass/public/index.html
  142. +0 −4 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/examples/sass/public/style.sass
  143. +0 −60 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/examples/session/app.js
  144. +0 −15 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/examples/stack-middleware/app.js
  145. +0 −13 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/examples/stack-middleware/hello.js
  146. +0 −13 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/examples/stack-middleware/world.js
  147. +0 −10 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/examples/static/app.js
  148. +0 −3  fileTransfer/node-upload-server/node_modules/connect-form/support/connect/examples/static/public/style.css
  149. +0 −44 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/examples/url-rewrite/app.js
  150. +0 −25 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/examples/vhost/app.js
  151. +0 −6 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/install.sh
  152. +0 −309 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/index.js
  153. +0 −69 ...Transfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/bodyDecoder.js
  154. +0 −142 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/cache.js
  155. +0 −71 ...ansfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/cacheManifest.js
  156. +0 −150 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/compiler.js
  157. +0 −71 ...nsfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/conditionalGet.js
  158. +0 −37 ...ansfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/cookieDecoder.js
  159. +0 −91 ...ransfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/errorHandler.js
  160. +0 −46 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/format.js
  161. +0 −79 ...ansfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/gzip-compress.js
  162. +0 −73 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/gzip-proc.js
  163. +0 −8 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/gzip.js
  164. +0 −235 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/jsonrpc.js
  165. +0 −136 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/lint.js
  166. +0 −107 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/logger.js
  167. +0 −54 ...nsfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/methodOverride.js
  168. +0 −107 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/pubsub.js
  169. +0 −43 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/repl.js
  170. +0 −28 ...ransfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/responseTime.js
  171. +0 −158 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/router.js
  172. +0 −129 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/session.js
  173. +0 −141 ...nsfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/session/memory.js
  174. +0 −71 ...sfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/session/session.js
  175. +0 −59 ...ansfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/session/store.js
  176. +0 −144 ...nsfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/staticProvider.js
  177. +0 −43 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/middleware/vhost.js
  178. +0 −13 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/public/error.html
  179. +0 −98 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/public/style.css
  180. +0 −56 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/response.js
  181. +0 −428 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/lib/connect/utils.js
  182. +0 −21 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/package.json
  183. +0 −26 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/support/highlight.js
  184. +0 −69 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/bodyDecoder.test.js
  185. +0 −23 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/compiler.test.js
  186. +0 −187 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/connect.test.js
  187. +0 −31 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/cookieDecoder.test.js
  188. +0 −60 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/errorHandler.test.js
  189. +0 −14 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/filters/uppercase.js
  190. +0 −2  fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/fixtures/foo.bar.baz.sass
  191. +0 −1  fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/fixtures/index.html
  192. +0 −1  fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/fixtures/some text.txt
  193. +0 −2  fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/fixtures/style.less
  194. +0 −3  fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/fixtures/style.sass
  195. +0 −4 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/fixtures/user.json
  196. +0 −37 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/format.test.js
  197. +0 −55 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/gzip.test.js
  198. +0 −87 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/helpers/http.js
  199. +0 −12 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/helpers/index.js
  200. +0 −225 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/jsonrpc.test.js
  201. +0 −52 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/logger.test.js
  202. +0 −69 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/methodOverride.test.js
  203. +0 −10 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/providers/echo.js
  204. +0 −29 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/responseTime.test.js
  205. +0 −154 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/router.test.js
  206. +0 −127 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/session.test.js
  207. +0 −66 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/static.test.js
  208. +0 −65 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/utils.test.js
  209. +0 −46 fileTransfer/node-upload-server/node_modules/connect-form/support/connect/test/vhost.test.js
  210. +0 −3  fileTransfer/node-upload-server/node_modules/connect-form/support/expresso/.gitmodules
  211. +0 −3  fileTransfer/node-upload-server/node_modules/connect-form/support/expresso/.npmignore
  212. +0 −54 fileTransfer/node-upload-server/node_modules/connect-form/support/expresso/History.md
  213. +0 −30 fileTransfer/node-upload-server/node_modules/connect-form/support/expresso/Makefile
  214. +0 −208 fileTransfer/node-upload-server/node_modules/connect-form/support/expresso/Readme.md
  215. +0 −647 fileTransfer/node-upload-server/node_modules/connect-form/support/expresso/bin/expresso
  216. +0 −4 fileTransfer/node-upload-server/node_modules/connect-form/support/expresso/lib/bar.js
  217. +0 −16 fileTransfer/node-upload-server/node_modules/connect-form/support/expresso/lib/foo.js
  218. +0 −9 fileTransfer/node-upload-server/node_modules/connect-form/support/expresso/package.json
  219. +0 −6 fileTransfer/node-upload-server/node_modules/connect-form/support/expresso/seed.yml
  220. +0 −64 fileTransfer/node-upload-server/node_modules/connect-form/support/expresso/test/assert.test.js
  221. +0 −12 fileTransfer/node-upload-server/node_modules/connect-form/support/expresso/test/bar.test.js
  222. +0 −13 fileTransfer/node-upload-server/node_modules/connect-form/support/expresso/test/foo.test.js
  223. +0 −61 fileTransfer/node-upload-server/node_modules/connect-form/support/expresso/test/http.test.js
  224. +0 −148 fileTransfer/node-upload-server/node_modules/connect-form/test/form.test.js
  225. +0 −7 fileTransfer/node-upload-server/node_modules/express/.npmignore
  226. +0 −811 fileTransfer/node-upload-server/node_modules/express/History.md
  227. +0 −22 fileTransfer/node-upload-server/node_modules/express/LICENSE
  228. +0 −29 fileTransfer/node-upload-server/node_modules/express/Makefile
  229. +0 −145 fileTransfer/node-upload-server/node_modules/express/Readme.md
  230. +0 −417 fileTransfer/node-upload-server/node_modules/express/bin/express
  231. +0 −2  fileTransfer/node-upload-server/node_modules/express/index.js
  232. +0 −510 fileTransfer/node-upload-server/node_modules/express/lib-cov/application.js
  233. +0 −65 fileTransfer/node-upload-server/node_modules/express/lib-cov/express.js
  234. +0 −54 fileTransfer/node-upload-server/node_modules/express/lib-cov/middleware.js
  235. +0 −225 fileTransfer/node-upload-server/node_modules/express/lib-cov/request.js
  236. +0 −611 fileTransfer/node-upload-server/node_modules/express/lib-cov/response.js
  237. +0 −40 fileTransfer/node-upload-server/node_modules/express/lib-cov/router/collection.js
  238. +0 −515 fileTransfer/node-upload-server/node_modules/express/lib-cov/router/index.js
  239. +0 −9 fileTransfer/node-upload-server/node_modules/express/lib-cov/router/methods.js
  240. +0 −68 fileTransfer/node-upload-server/node_modules/express/lib-cov/router/route.js
  241. +0 −151 fileTransfer/node-upload-server/node_modules/express/lib-cov/utils.js
  242. +0 −81 fileTransfer/node-upload-server/node_modules/express/lib-cov/view.js
  243. +0 −79 fileTransfer/node-upload-server/node_modules/express/lib/express.js
  244. +0 −582 fileTransfer/node-upload-server/node_modules/express/lib/http.js
  245. +0 −52 fileTransfer/node-upload-server/node_modules/express/lib/https.js
  246. +0 −323 fileTransfer/node-upload-server/node_modules/express/lib/request.js
  247. +0 −460 fileTransfer/node-upload-server/node_modules/express/lib/response.js
  248. +0 −53 fileTransfer/node-upload-server/node_modules/express/lib/router/collection.js
  249. +0 −398 fileTransfer/node-upload-server/node_modules/express/lib/router/index.js
  250. +0 −79 fileTransfer/node-upload-server/node_modules/express/lib/router/methods.js
  251. +0 −88 fileTransfer/node-upload-server/node_modules/express/lib/router/route.js
  252. +0 −152 fileTransfer/node-upload-server/node_modules/express/lib/utils.js
  253. +0 −460 fileTransfer/node-upload-server/node_modules/express/lib/view.js
  254. +0 −40 fileTransfer/node-upload-server/node_modules/express/lib/view/partial.js
  255. +0 −210 fileTransfer/node-upload-server/node_modules/express/lib/view/view.js
  256. +0 −11 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/.npmignore
  257. +0 −24 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/LICENSE
  258. +0 −2  fileTransfer/node-upload-server/node_modules/express/node_modules/connect/index.js
  259. +0 −81 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/cache.js
  260. +0 −106 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/connect.js
  261. +0 −218 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/http.js
  262. +0 −47 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/https.js
  263. +0 −46 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/index.js
  264. +0 −93 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/basicAuth.js
  265. +0 −196 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js
  266. +0 −163 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/compiler.js
  267. +0 −46 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/cookieParser.js
  268. +0 −105 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/csrf.js
  269. +0 −222 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/directory.js
  270. +0 −100 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/errorHandler.js
  271. +0 −76 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/favicon.js
  272. +0 −80 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/limit.js
  273. +0 −299 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/logger.js
  274. +0 −38 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/methodOverride.js
  275. +0 −100 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/profiler.js
  276. +0 −40 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/query.js
  277. +0 −34 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/responseTime.js
  278. +0 −379 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/router.js
  279. +0 −345 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/session.js
  280. +0 −126 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/session/cookie.js
  281. +0 −131 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/session/memory.js
  282. +0 −137 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/session/session.js
  283. +0 −87 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/session/store.js
  284. +0 −225 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/static.js
  285. +0 −175 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/staticCache.js
  286. +0 −44 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/middleware/vhost.js
  287. +0 −79 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/patch.js
  288. +0 −75 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/public/directory.html
  289. +0 −13 fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/public/error.html
  290. BIN  fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/public/favicon.ico
  291. BIN  fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/public/icons/page.png
  292. BIN  fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/public/icons/page_add.png
  293. BIN  fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/public/icons/page_attach.png
  294. BIN  fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/public/icons/page_code.png
  295. BIN  fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/public/icons/page_copy.png
  296. BIN  fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/public/icons/page_delete.png
  297. BIN  fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/public/icons/page_edit.png
  298. BIN  fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/public/icons/page_error.png
  299. BIN  fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/public/icons/page_excel.png
  300. BIN  fileTransfer/node-upload-server/node_modules/express/node_modules/connect/lib/public/icons/page_find.png
Sorry, we could not display the entire diff because too many files (462) changed.
View
202 LICENSE
@@ -0,0 +1,202 @@
+
+Apache License
+Version 2.0, January 2004
+http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
View
0  README
No changes.
View
54 README.md
@@ -0,0 +1,54 @@
+
+#BB10 WebWorks Samples Repository
+
+The _**BB10-WebWorks-Samples**_ repository is an area where members of the community can post up their WebWorks sample applications to share with the rest of the world.
+
+All APIs shared in this repository are Open Source under the [Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0.html)
+
+**To contribute code to this repository you must be [signed up as an official contributor](https://github.com/blackberry/WebWorks/wiki/How-to-Contribute).**
+
+
+## Code Organization
+
+Each Sample added to the repository should be placed in its own directory. Make sure you name the directory something simple, yet descriptive. Each Sample must also have a README.md file at the root of its directory.
+This README needs to indicate the Author of the API, devices and OS versions it was tested on, and information about the application and how to use it.
+
+
+## Contributing Samples
+
+To add new Samples or make modifications to existing Samples:
+
+1. Fork the **BB10-WebWorks-Samples** repository
+2. Make the changes/additions to your fork
+3. Send a pull request from your fork back to the **BB10-WebWorks-Samples** repository
+4. If you made changes to code which you are NOT the owner, send a message via github messages to the Author(s) of the Sample to indicate that you have a pull request for them to review
+5. If you made changes to code which you own, send a message via github messages to one of the Committers listed below to have your code merged
+
+Contributors:
+
+[Hasan Ahmad](https://github.com/haahmad)
+[Matthew D'Andrea](https://github.com/mdandrea)
+[Marco Di Cesare](https://github.com/mdicesare)
+
+## Governence
+
+The code for each of the WebWorks Samples is managed by the author of the Sample. When a pull request comes in for a specific Sample the Author(s) should be notified by the pull request owner to perform a code review. When the author
+indicates that the pull request is ready to be merged (via a comment on the pull request) they can then send a message to a committer through github messages to have the changes merged.
+
+If there are more than one Author for a specific Sample, only one Author is required to indicate that the pull request is ready. If there's more than one Sample affected by a pull request, at least one Author from each Sample must code review
+the pull request and indicate that it is ready to be merged before the pull request can be merged.
+
+If the Author of the pull request is the actual owner of the Sample, then the Author should send a message to a committer via github messages to have their changes merged.
+
+**Ownership Transfer:**
+An Author can transfer ownership to another Author by opening up an [Issue](https://github.com/blackberry/BB10-WebWorks-Samples/issues) where both the original Author requests ownership to be transfered to the new Author, and the new Author agrees to take ownership of the code.
+The README for the Sample should be updated to indicate the new Author.
+
+## Bug Reporting and Feature Requests
+
+If you find a bug in a Sample, or have an enhancement request, simply file an [Issue](https://github.com/blackberry/BB10-WebWorks-Samples/issues) for the Sample and send a message (via github messages) to the Sample Author(s) to let them know that you have filed an [Issue](https://github.com/blackberry/BB10-WebWorks-Samples/issues).
+
+## Disclaimer
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
View
15 fileTransfer/README.md
@@ -4,7 +4,7 @@ Sample applications that demonstrate how to use the blackberry.io and blackberry
**Tested On**
-* BlackBerry 10.0.6 Bundle 363
+* BlackBerry 10.0.6
**Author(s)**
@@ -13,7 +13,7 @@ Sample applications that demonstrate how to use the blackberry.io and blackberry
**Dependencies**
1. [jquery.mobile-1.1.0.min.js, jquery.mobile-1.1.0.min.css, jquery-1.7.1.min.js ](http://www.jquerymobile.com/) The jQuery Mobile Framework
-
+2. [node.js and npm](https://github.com/joyent/node)
**To contribute code to this repository you must be [signed up as an official contributor](http://blackberry.github.com/howToContribute.html).**
@@ -24,21 +24,26 @@ Sample applications that demonstrate how to use the blackberry.io and blackberry
## Troubleshooting
+1. Configure upload server - install and configure node and npm, inside the root directory of your node server, run the following command
+```$npm install express@2.5.9```
+
+2. When uploading, URL is being blocked access by the whitelist - Update the whitelisted IP in config.xml for the upload server.
+
## More Info
* [BlackBerry HTML5 WebWorks](https://bdsc.webapps.blackberry.com/html5/) - Downloads, Getting Started guides, samples, code signing keys.
-* [BlackBerry WebWorks Development Guides] (https://bdsc.webapps.blackberry.com/html5/documentation)
+* [BlackBerry WebWorks Development Guides](https://bdsc.webapps.blackberry.com/html5/documentation)
* [BlackBerry WebWorks Community Forums](http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/bd-p/browser_dev)
* [BlackBerry Open Source WebWorks Contributions Forums](http://supportforums.blackberry.com/t5/BlackBerry-WebWorks/bd-p/ww_con)
## Contributing Changes
-Please see the [README](https://github.com/blackberry/WebWorks-Samples) of the WebWorks-Samples repository for instructions on how to add new Samples or make modifications to existing Samples.
+Please see the [README](https://github.com/blackberry/BB10-WebWorks-Samples) of the WebWorks-Samples repository for instructions on how to add new Samples or make modifications to existing Samples.
## Bug Reporting and Feature Requests
-If you find a bug in a Sample, or have an enhancement request, simply file an [Issue](https://github.com/blackberry/WebWorks-Samples/issues) for the Sample and send a message (via github messages) to the Sample Author(s) to let them know that you have filed an [Issue](https://github.com/blackberry/WebWorks-Samples/issues).
+If you find a bug in a Sample, or have an enhancement request, simply file an [Issue](https://github.com/blackberry/BB10-WebWorks-Samples/issues) for the Sample and send a message (via github messages) to the Sample Author(s) to let them know that you have filed an [Issue](https://github.com/blackberry/WebWorks-Samples/issues).
## Disclaimer
View
2  fileTransfer/config.xml
@@ -40,7 +40,7 @@ limitations under the License.
<feature id="blackberry.invoke" required="true" version="1.0.0.0"></feature>
<access uri="http://w3.org/" subdomains="true" />
- <access uri="http://10.137.251.209/" subdomains="true" />
+ <access uri="http://10.137.251.215/" subdomains="true" />
<access uri="http://bojap.com/" subdomains="true" />
<access uri="http://rim.com/" subdomains="true" />
View
BIN  fileTransfer/device/filetransfer.bar
Binary file not shown
View
15 fileTransfer/fileUpload.html
@@ -24,14 +24,13 @@
<script>
function ready() {
document.getElementById("upload").onclick = upload;
- document.getElementById("open").onclick = open;
}
function upload() {
try {
blackberry.io.filetransfer.upload(
blackberry.io.sharedFolder + "/documents/Getting Started with Adobe Reader.pdf",
- "http://10.137.251.209:3000/upload",
+ "http://10.137.251.215:8080/upload", //use address of server where you are uploading
function (result) {
alert("Upload successful");
console.log("Bytes sent: " + result.bytesSent);
@@ -60,17 +59,6 @@
}
}
- function open() {
- try {
- blackberry.invoke.invoke({
- target: "sys.browser",
- uri: "http://bojap.com/omg/upload/"
- }, function () { console.log("invocation success"); }, function (e) { alert("invocation failed: " + e); } );
- }
- catch(e) {
- alert("Exception in open: " + e);
- }
- }
window.addEventListener("load", function () {
document.addEventListener("webworksready", ready);
@@ -80,5 +68,4 @@
<body>
<button onclick="history.back()">Back</button><br />
<button id="upload">Upload File</button><br />
- <button id="open">View File</button>
</body>
View
BIN  fileTransfer/filetransfer.zip
Binary file not shown
View
47 fileTransfer/node-upload-server/app.js
@@ -1,47 +0,0 @@
-/*
-* Copyright 2012 Research In Motion Limited.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-var format = require('util').format,
- express = require('express'),
- fs = require("fs"),
- path = require("path"),
- app = express.createServer();
-
-
-app.use(express.bodyParser());
-
-app.get('/', function(req, res) {
- res.send('Hello World');
-});
-
-app.post('/upload', function(req, res) {
- console.log(req.files);
-
- if (path.existsSync(req.files.file.path)){
- res.send(format('uploaded %s (%d Kb) to %s as %s'
- , req.files.file.name
- , req.files.file.size / 1024 | 0
- , req.files.file.path
- , req.body.title));
- fs.rename(req.files.file.path, __dirname + "/uploads/" + req.files.file.name);
- } else {
- res.send('File not found :(', 404);
- }
-
-
-});
-
-app.listen(3000);
View
9 fileTransfer/node-upload-server/node_modules/.bin/express
@@ -1,9 +0,0 @@
-#!/bin/sh
-if [ -x "`dirname "$0"`/node" ]; then
- "`dirname "$0"`/node" "`dirname "$0"`/../express/bin/express" "$@"
- ret=$?
-else
- node "`dirname "$0"`/../express/bin/express" "$@"
- ret=$?
-fi
-exit $ret
View
6 fileTransfer/node-upload-server/node_modules/.bin/express.cmd
@@ -1,6 +0,0 @@
-:: Created by npm, please don't edit manually.
-@IF EXIST "%~dp0"\"node.exe" (
- "%~dp0"\"node.exe" "%~dp0\..\express\bin\express" %*
-) ELSE (
- node "%~dp0\..\express\bin\express" %*
-)
View
6 fileTransfer/node-upload-server/node_modules/connect-form/.gitmodules
@@ -1,6 +0,0 @@
-[submodule "support/expresso"]
- path = support/expresso
- url = git://github.com/visionmedia/expresso.git
-[submodule "support/connect"]
- path = support/connect
- url = http://github.com/senchalabs/connect.git
View
28 fileTransfer/node-upload-server/node_modules/connect-form/History.md
@@ -1,28 +0,0 @@
-
-0.2.1 / 2011-03-25
-==================
-
- * Added __LICENSE__ file
- * Fixed; do not assume content-type is present [reported by c4milo]
-
-0.2.0 / 2010-12-15
-==================
-
- * Fixed issue with complete callback not being registered. Closes #5
-
-0.1.2 / 2010-07-28
-==================
-
- * Removed require("connect/utils")
-
-0.1.1 / 2010-07-27
-==================
-
- * Added support for bodyDecoder / connect-form to coexist
- * Added lib/connect-form.js
-
-0.1.0 / 2010-07-14
-==================
-
- * Changed api:
- - use `form.complete(function(){})` instead of `form.onComplete = function(){}`
View
22 fileTransfer/node-upload-server/node_modules/connect-form/LICENSE
@@ -1,22 +0,0 @@
-(The MIT License)
-
-Copyright (c) 2009-2010 TJ Holowaychuk <tj@vision-media.ca>
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-'Software'), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
11 fileTransfer/node-upload-server/node_modules/connect-form/Makefile
@@ -1,11 +0,0 @@
-
-test:
- @CONNECT_ENV=test ./support/expresso/bin/expresso \
- -I support/connect/lib
-
-index.html: index.js
- dox --title "Connect Form" \
- --ribbon "http://github.com/visionmedia/connect-form" \
- $< > $@
-
-.PHONY: test
View
35 fileTransfer/node-upload-server/node_modules/connect-form/Readme.md
@@ -1,35 +0,0 @@
-
-# Connect Form
-
-Connect Form is a multipart / urlencoded form parsing middleware utilizing [node-formidable](http://github.com/felixge/node-formidable) behind the scenes.
-
-## Installation
-
-via npm:
-
- $ npm install connect-form
-
-## Example
-
- var form = require('connect-form');
- var server = connect.createServer(
- form({ keepExtensions: true }),
- function(req, res, next){
- // Form was submitted
- if (req.form) {
- // Do something when parsing is finished
- // and respond, or respond immediately
- // and work with the files.
- req.form.complete(function(err, fields, files){
- res.writeHead(200, {});
- if (err) res.write(JSON.stringify(err.message));
- res.write(JSON.stringify(fields));
- res.write(JSON.stringify(files));
- res.end();
- });
- // Regular request, pass to next middleware
- } else {
- next();
- }
- }
- );
View
213 fileTransfer/node-upload-server/node_modules/connect-form/index.html
@@ -1,213 +0,0 @@
-<a href="http://github.com/visionmedia/connect-form"><img alt="Fork me on GitHub" id="ribbon" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a><html>
- <head>
- <title>Connect Form</title>
- <style>body {
- margin: 0;
- padding: 0;
- font: 14px/1.5 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
- color: #252519;
-}
-a {
- color: #252519;
-}
-a:hover {
- text-decoration: underline;
- color: #19469D;
-}
-p {
- margin: 12px 0;
-}
-h1, h2, h3 {
- margin: 0;
- padding: 0;
-}
-ul#menu {
- opacity: 0;
- position: fixed;
- top: 0;
- right: 0;
- list-style: none;
- margin: 0;
- padding: 10px 2px;
- text-align: right;
- background: rgba(255,255,255,0.7);
- -webkit-box-shadow: -1px 2px 2px rgba(0,0,0,0.3);
- -moz-box-shadow: -1px 2px 2px rgba(0,0,0,0.3);
- -webkit-border-bottom-left-radius: 5px;
- -moz-border-bottom-left-radius: 5px;
- -webkit-transition-properties: opacity;
- -webkit-transition-duration: 0.6s;
-}
-ul#menu:hover {
- opacity: 1;
-}
-ul#menu li {
- padding: 2px 10px;
- border-bottom: 1px solid #eee;
-}
-ul#menu li:hover {
- background: rgba(0,0,0,0.03);
-}
-ul#menu li:last-child {
- border-bottom: none;
-}
-ul#menu li a {
- text-decoration: none;
- font-size: 12px;
- color: rgba(0,0,0,0.5);
-}
-ul#menu li a strong {
- font-weight: normal;
- color: #252519;
-}
-table#source {
- width: 100%;
- border-collapse: collapse;
-}
-table#source td:first-child {
- padding: 30px 40px 30px 40px;
- vertical-align: top;
-}
-table#source td:first-child,
-table#source td:first-child pre {
- width: 450px;
-}
-table#source td:last-child {
- padding: 30px 0 30px 40px;
- border-left: 1px solid #E5E5EE;
- background: #F5F5FF;
-}
-table#source tr {
- border-bottom: 1px solid #E5E5EE;
-}
-table#source tr.filename {
- padding-top: 40px;
- border-top: 1px solid #E5E5EE;
-}
-table#source tr.filename td:first-child {
- text-transform: capitalize;
-}
-table#source tr.filename td:last-child {
- font-size: 12px;
-}
-table#source tr.filename h2 {
- margin: 0;
- padding: 0;
-}
-table#source tr.code h1,
-table#source tr.code h2,
-table#source tr.code h3 {
- margin-top: 30px;
- font-family: "Lucida Grande", "Helvetica Nueue", Arial, sans-serif;
- font-size: 18px;
-}
-table#source tr.code h2 {
- font-size: 16px;
-}
-table#source tr.code h3 {
- font-size: 14px;
-}
-table#source tr.code ul {
- margin: 15px 0 15px 35px;
- padding: 0;
-}
-table#source tr.code ul li {
- margin: 0;
- padding: 1px 0;
-}
-table#source tr.code ul li p {
- margin: 0;
- padding: 0;
-}
-table#source tr.code td:first-child pre {
- padding: 20px;
-}
-#ribbon {
- position: absolute;
- top: 0;
- right: 0;
-}
-code .string { color: #219161; }
-code .regexp { color: #219161; }
-code .keyword { color: #954121; }
-code .number { color: #19469D; }
-code .comment { color: #bbb; }
-code .this { color: #19469D; }</style>
- </head>
- <body>
-<ul id="menu"><li><a href="#index.js"><strong>index</strong></a></li></ul><table id="source"><tbody><tr><td><h1>Connect Form</h1></td><td></td></tr><tr class="filename"><td><h2 id="index.js">index</h2></td><td>index.js</td></tr><tr class="code">
-<td class="docs">
-<p>Module dependencies.</p>
-</td>
-<td class="code">
-<pre><code><span class="keyword">var</span> <span class="variable">utils</span> = <span class="variable">require</span>(<span class="string">'connect/utils'</span>),
- <span class="variable">formidable</span> = <span class="variable">require</span>(<span class="string">'formidable'</span>);</code></pre>
-</td>
-</tr>
-<tr class="code">
-<td class="docs">
-<p>Setup form with the given <code>options</code>.</p>
-
-<h2>Options</h2>
-
-<ul>
-<li><code>encoding</code> Encoding used for incoming forms. Defaults to utf8</li>
-<li><code>uploadDir</code> Directory to save uploads. Defaults to &ldquo;/tmp&rdquo;</li>
-<li><code>keepExtensions</code> Include original extensions. Defaults to <code>false</code></li>
-</ul>
-
-
-<h2>Examples</h2>
-
-<pre><code> var form = require('connect-form');
- var server = connect.createServer(
- form({ keepExtensions: true }),
- function(req, res, next){
- // Form was submitted
- if (req.form) {
- // Do something when parsing is finished
- // and respond, or respond immediately
- // and work with the files.
- req.form.complete(function(err, fields, files){
- res.writeHead(200, {});
- if (err) res.write(JSON.stringify(err.message));
- res.write(JSON.stringify(fields));
- res.write(JSON.stringify(files));
- res.end();
- });
- // Regular request, pass to next middleware
- } else {
- next();
- }
- }
- );
-</code></pre>
-
-<h2></h2>
-
-<ul>
-<li><p><strong>param</strong>: <em>Object</em> options</p></li>
-<li><p><strong>return</strong>: <em>Function</em></p></li>
-<li><p><strong>api</strong>: <em>public</em></p></li>
-</ul>
-
-</td>
-<td class="code">
-<pre><code><span class="variable">module</span>.<span class="variable">exports</span> = <span class="keyword">function</span>(<span class="variable">options</span>){
- <span class="variable">options</span> = <span class="variable">options</span> || {};
- <span class="keyword">return</span> <span class="keyword">function</span>(<span class="variable">req</span>, <span class="variable">res</span>, <span class="variable">next</span>){
- <span class="keyword">if</span> (<span class="variable">formRequest</span>(<span class="variable">req</span>)) {
- <span class="keyword">var</span> <span class="variable">callback</span> = <span class="keyword">function</span>(){},
- <span class="variable">form</span> = <span class="variable">req</span>.<span class="variable">form</span> = <span class="keyword">new</span> <span class="variable">formidable</span>.<span class="class">IncomingForm</span>;
- <span class="variable">utils</span>.<span class="variable">merge</span>(<span class="variable">form</span>, <span class="variable">options</span>);
- <span class="variable">form</span>.<span class="variable">complete</span> = <span class="keyword">function</span>(<span class="variable">fn</span>){ <span class="variable">callback</span> = <span class="variable">fn</span>; };
- <span class="variable">form</span>.<span class="variable">parse</span>(<span class="variable">req</span>, <span class="keyword">function</span>(){
- <span class="variable">callback</span>.<span class="variable">apply</span>(<span class="this">this</span>, <span class="variable">arguments</span>);
- });
- }
- <span class="variable">next</span>();
- };
-};</code></pre>
-</td>
-</tr> </body>
-</html></tbody></table>
View
100 fileTransfer/node-upload-server/node_modules/connect-form/lib/connect-form.js
@@ -1,100 +0,0 @@
-
-/*!
- * Connect - Multipart
- * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
- * MIT Licensed
- */
-
-/**
- * Module dependencies.
- */
-
-var formidable = require('formidable');
-
-/**
- * Setup form with the given `options`.
- *
- * Options:
- *
- * - `encoding` Encoding used for incoming forms. Defaults to utf8
- * - `uploadDir` Directory to save uploads. Defaults to "/tmp"
- * - `keepExtensions` Include original extensions. Defaults to `false`
- *
- * Examples:
- *
- * var form = require('connect-form');
- * var server = connect.createServer(
- * form({ keepExtensions: true }),
- * function(req, res, next){
- * // Form was submitted
- * if (req.form) {
- * // Do something when parsing is finished
- * // and respond, or respond immediately
- * // and work with the files.
- * req.form.complete(function(err, fields, files){
- * res.writeHead(200, {});
- * if (err) res.write(JSON.stringify(err.message));
- * res.write(JSON.stringify(fields));
- * res.write(JSON.stringify(files));
- * res.end();
- * });
- * // Regular request, pass to next middleware
- * } else {
- * next();
- * }
- * }
- * );
- *
- * @param {Object} options
- * @return {Function}
- * @api public
- */
-
-module.exports = function(options){
- options = options || {};
- return function(req, res, next){
- if (formRequest(req)) {
- var form = req.form = new formidable.IncomingForm;
- merge(form, options);
- form.complete = function(fn){
- form.parse(req, fn);
- };
- }
- next();
- };
-};
-
-/**
- * Check if `req` is a valid form request.
- *
- * @param {IncomingMessage} req
- * @return {Boolean}
- * @api private
- */
-
-function formRequest(req) {
- var contentType = req.headers['content-type'];
- if (!contentType) return;
- return req.body === undefined
- && (req.method === 'POST'
- || req.method === 'PUT')
- && (~contentType.indexOf('multipart/form-data')
- || ~contentType.indexOf('urlencoded'));
-}
-
-/**
- * Merge object `b` with object `a`.
- *
- * @param {Object} a
- * @param {Object} b
- * @return {Object} a
- * @api private
- */
-
-function merge(a, b) {
- var keys = Object.keys(b);
- for (var i = 0, len = keys.length; i < len; ++i) {
- a[keys[i]] = b[keys[i]];
- }
- return a;
-}
View
4 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/.npmignore
@@ -1,4 +0,0 @@
-/test/tmp/
-*.upload
-*.un~
-*.http
View
4 ...Transfer/node-upload-server/node_modules/connect-form/node_modules/formidable/.travis.yml
@@ -1,4 +0,0 @@
-language: node_js
-node_js:
- - 0.4
- - 0.6
View
14 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/Makefile
@@ -1,14 +0,0 @@
-SHELL := /bin/bash
-
-test:
- @./test/run.js
-
-build: npm test
-
-npm:
- npm install .
-
-clean:
- rm test/tmp/*
-
-.PHONY: test clean build
View
311 fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/Readme.md
@@ -1,311 +0,0 @@
-# Formidable
-
-[![Build Status](https://secure.travis-ci.org/felixge/node-formidable.png?branch=master)](http://travis-ci.org/felixge/node-formidable)
-
-## Purpose
-
-A node.js module for parsing form data, especially file uploads.
-
-## Current status
-
-This module was developed for [Transloadit](http://transloadit.com/), a service focused on uploading
-and encoding images and videos. It has been battle-tested against hundreds of GB of file uploads from
-a large variety of clients and is considered production-ready.
-
-## Features
-
-* Fast (~500mb/sec), non-buffering multipart parser
-* Automatically writing file uploads to disk
-* Low memory footprint
-* Graceful error handling
-* Very high test coverage
-
-## Changelog
-
-### v1.0.9
-
-* Emit progress when content length header parsed (Tim Koschützki)
-* Fix Readme syntax due to GitHub changes (goob)
-* Replace references to old 'sys' module in Readme with 'util' (Peter Sugihara)
-
-### v1.0.8
-
-* Strip potentially unsafe characters when using `keepExtensions: true`.
-* Switch to utest / urun for testing
-* Add travis build
-
-### v1.0.7
-
-* Remove file from package that was causing problems when installing on windows. (#102)
-* Fix typos in Readme (Jason Davies).
-
-### v1.0.6
-
-* Do not default to the default to the field name for file uploads where
- filename="".
-
-### v1.0.5
-
-* Support filename="" in multipart parts
-* Explain unexpected end() errors in parser better
-
-**Note:** Starting with this version, formidable emits 'file' events for empty
-file input fields. Previously those were incorrectly emitted as regular file
-input fields with value = "".
-
-### v1.0.4
-
-* Detect a good default tmp directory regardless of platform. (#88)
-
-### v1.0.3
-
-* Fix problems with utf8 characters (#84) / semicolons in filenames (#58)
-* Small performance improvements
-* New test suite and fixture system
-
-### v1.0.2
-
-* Exclude node\_modules folder from git
-* Implement new `'aborted'` event
-* Fix files in example folder to work with recent node versions
-* Make gently a devDependency
-
-[See Commits](https://github.com/felixge/node-formidable/compare/v1.0.1...v1.0.2)
-
-### v1.0.1
-
-* Fix package.json to refer to proper main directory. (#68, Dean Landolt)
-
-[See Commits](https://github.com/felixge/node-formidable/compare/v1.0.0...v1.0.1)
-
-### v1.0.0
-
-* Add support for multipart boundaries that are quoted strings. (Jeff Craig)
-
-This marks the beginning of development on version 2.0 which will include
-several architectural improvements.
-
-[See Commits](https://github.com/felixge/node-formidable/compare/v0.9.11...v1.0.0)
-
-### v0.9.11
-
-* Emit `'progress'` event when receiving data, regardless of parsing it. (Tim Koschützki)
-* Use [W3C FileAPI Draft](http://dev.w3.org/2006/webapi/FileAPI/) properties for File class
-
-**Important:** The old property names of the File class will be removed in a
-future release.
-
-[See Commits](https://github.com/felixge/node-formidable/compare/v0.9.10...v0.9.11)
-
-### Older releases
-
-These releases were done before starting to maintain the above Changelog:
-
-* [v0.9.10](https://github.com/felixge/node-formidable/compare/v0.9.9...v0.9.10)
-* [v0.9.9](https://github.com/felixge/node-formidable/compare/v0.9.8...v0.9.9)
-* [v0.9.8](https://github.com/felixge/node-formidable/compare/v0.9.7...v0.9.8)
-* [v0.9.7](https://github.com/felixge/node-formidable/compare/v0.9.6...v0.9.7)
-* [v0.9.6](https://github.com/felixge/node-formidable/compare/v0.9.5...v0.9.6)
-* [v0.9.5](https://github.com/felixge/node-formidable/compare/v0.9.4...v0.9.5)
-* [v0.9.4](https://github.com/felixge/node-formidable/compare/v0.9.3...v0.9.4)
-* [v0.9.3](https://github.com/felixge/node-formidable/compare/v0.9.2...v0.9.3)
-* [v0.9.2](https://github.com/felixge/node-formidable/compare/v0.9.1...v0.9.2)
-* [v0.9.1](https://github.com/felixge/node-formidable/compare/v0.9.0...v0.9.1)
-* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)
-* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)
-* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)
-* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)
-* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)
-* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)
-* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)
-* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)
-* [v0.1.0](https://github.com/felixge/node-formidable/commits/v0.1.0)
-
-## Installation
-
-Via [npm](http://github.com/isaacs/npm):
-
- npm install formidable@latest
-
-Manually:
-
- git clone git://github.com/felixge/node-formidable.git formidable
- vim my.js
- # var formidable = require('./formidable');
-
-Note: Formidable requires [gently](http://github.com/felixge/node-gently) to run the unit tests, but you won't need it for just using the library.
-
-## Example
-
-Parse an incoming file upload.
-
- var formidable = require('formidable'),
- http = require('http'),
-
- util = require('util');
-
- http.createServer(function(req, res) {
- if (req.url == '/upload' && req.method.toLowerCase() == 'post') {
- // parse a file upload
- var form = new formidable.IncomingForm();
- form.parse(req, function(err, fields, files) {
- res.writeHead(200, {'content-type': 'text/plain'});
- res.write('received upload:\n\n');
- res.end(util.inspect({fields: fields, files: files}));
- });
- return;
- }
-
- // show a file upload form
- res.writeHead(200, {'content-type': 'text/html'});
- res.end(
- '<form action="/upload" enctype="multipart/form-data" method="post">'+
- '<input type="text" name="title"><br>'+
- '<input type="file" name="upload" multiple="multiple"><br>'+
- '<input type="submit" value="Upload">'+
- '</form>'
- );
- }).listen(80);
-
-## API
-
-### formidable.IncomingForm
-
-__new formidable.IncomingForm()__
-
-Creates a new incoming form.
-
-__incomingForm.encoding = 'utf-8'__
-
-The encoding to use for incoming form fields.
-
-__incomingForm.uploadDir = process.env.TMP || '/tmp' || process.cwd()__
-
-The directory for placing file uploads in. You can move them later on using
-`fs.rename()`. The default directory is picked at module load time depending on
-the first existing directory from those listed above.
-
-__incomingForm.keepExtensions = false__
-
-If you want the files written to `incomingForm.uploadDir` to include the extensions of the original files, set this property to `true`.
-
-__incomingForm.type__
-
-Either 'multipart' or 'urlencoded' depending on the incoming request.
-
-__incomingForm.maxFieldsSize = 2 * 1024 * 1024__
-
-Limits the amount of memory a field (not file) can allocate in bytes.
-If this value is exceeded, an `'error'` event is emitted. The default
-size is 2MB.
-
-__incomingForm.hash = false__
-
-If you want checksums calculated for incoming files, set this to either `'sha1'` or `'md5'`.
-
-__incomingForm.bytesReceived__
-
-The amount of bytes received for this form so far.
-
-__incomingForm.bytesExpected__
-
-The expected number of bytes in this form.
-
-__incomingForm.parse(request, [cb])__
-
-Parses an incoming node.js `request` containing form data. If `cb` is provided, all fields an files are collected and passed to the callback:
-
- incomingForm.parse(req, function(err, fields, files) {
- // ...
- });
-
-__incomingForm.onPart(part)__
-
-You may overwrite this method if you are interested in directly accessing the multipart stream. Doing so will disable any `'field'` / `'file'` events processing which would occur otherwise, making you fully responsible for handling the processing.
-
- incomingForm.onPart = function(part) {
- part.addListener('data', function() {
- // ...
- });
- }
-
-If you want to use formidable to only handle certain parts for you, you can do so:
-
- incomingForm.onPart = function(part) {
- if (!part.filename) {
- // let formidable handle all non-file parts
- incomingForm.handlePart(part);
- }
- }
-
-Check the code in this method for further inspiration.
-
-__Event: 'progress' (bytesReceived, bytesExpected)__
-
-Emitted after each incoming chunk of data that has been parsed. Can be used to roll your own progress bar.
-
-__Event: 'field' (name, value)__
-
-Emitted whenever a field / value pair has been received.
-
-__Event: 'fileBegin' (name, file)__
-
-Emitted whenever a new file is detected in the upload stream. Use this even if
-you want to stream the file to somewhere else while buffering the upload on
-the file system.
-
-__Event: 'file' (name, file)__
-
-Emitted whenever a field / file pair has been received. `file` is an instance of `File`.
-
-__Event: 'error' (err)__
-
-Emitted when there is an error processing the incoming form. A request that experiences an error is automatically paused, you will have to manually call `request.resume()` if you want the request to continue firing `'data'` events.
-
-__Event: 'aborted'__
-
-Emitted when the request was aborted by the user. Right now this can be due to a 'timeout' or 'close' event on the socket. In the future there will be a separate 'timeout' event (needs a change in the node core).
-
-__Event: 'end' ()__
-
-Emitted when the entire request has been received, and all contained files have finished flushing to disk. This is a great place for you to send your response.
-
-### formidable.File
-
-__file.size = 0__
-
-The size of the uploaded file in bytes. If the file is still being uploaded (see `'fileBegin'` event), this property says how many bytes of the file have been written to disk yet.
-
-__file.path = null__
-
-The path this file is being written to. You can modify this in the `'fileBegin'` event in
-case you are unhappy with the way formidable generates a temporary path for your files.
-
-__file.name = null__
-
-The name this file had according to the uploading client.
-
-__file.type = null__
-
-The mime type of this file, according to the uploading client.
-
-__file.lastModifiedDate = null__
-
-A date object (or `null`) containing the time this file was last written to. Mostly
-here for compatibility with the [W3C File API Draft](http://dev.w3.org/2006/webapi/FileAPI/).
-
-__file.hash = null__
-
-If hash calculation was set, you can read the hex digest out of this var.
-
-## License
-
-Formidable is licensed under the MIT license.
-
-## Ports
-
-* [multipart-parser](http://github.com/FooBarWidget/multipart-parser): a C++ parser based on formidable
-
-## Credits
-
-* [Ryan Dahl](http://twitter.com/ryah) for his work on [http-parser](http://github.com/ry/http-parser) which heavily inspired multipart_parser.js
View
3  fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/TODO
@@ -1,3 +0,0 @@
-- Better bufferMaxSize handling approach
-- Add tests for JSON parser pull request and merge it
-- Implement QuerystringParser the same way as MultipartParser
View
70 ...ver/node_modules/connect-form/node_modules/formidable/benchmark/bench-multipart-parser.js
@@ -1,70 +0,0 @@
-require('../test/common');
-var multipartParser = require('../lib/multipart_parser'),
- MultipartParser = multipartParser.MultipartParser,
- parser = new MultipartParser(),
- Buffer = require('buffer').Buffer,
- boundary = '-----------------------------168072824752491622650073',
- mb = 100,
- buffer = createMultipartBuffer(boundary, mb * 1024 * 1024),
- callbacks =
- { partBegin: -1,
- partEnd: -1,
- headerField: -1,
- headerValue: -1,
- partData: -1,
- end: -1,
- };
-
-
-parser.initWithBoundary(boundary);
-parser.onHeaderField = function() {
- callbacks.headerField++;
-};
-
-parser.onHeaderValue = function() {
- callbacks.headerValue++;
-};
-
-parser.onPartBegin = function() {
- callbacks.partBegin++;
-};
-
-parser.onPartData = function() {
- callbacks.partData++;
-};
-
-parser.onPartEnd = function() {
- callbacks.partEnd++;
-};
-
-parser.onEnd = function() {
- callbacks.end++;
-};
-
-var start = +new Date(),
- nparsed = parser.write(buffer),
- duration = +new Date - start,
- mbPerSec = (mb / (duration / 1000)).toFixed(2);
-
-console.log(mbPerSec+' mb/sec');
-
-assert.equal(nparsed, buffer.length);
-
-function createMultipartBuffer(boundary, size) {
- var head =
- '--'+boundary+'\r\n'
- + 'content-disposition: form-data; name="field1"\r\n'
- + '\r\n'
- , tail = '\r\n--'+boundary+'--\r\n'
- , buffer = new Buffer(size);
-
- buffer.write(head, 'ascii', 0);
- buffer.write(tail, 'ascii', buffer.length - tail.length);
- return buffer;
-}
-
-process.on('exit', function() {
- for (var k in callbacks) {
- assert.equal(0, callbacks[k], k+' count off by '+callbacks[k]);
- }
-});
View
43 ...sfer/node-upload-server/node_modules/connect-form/node_modules/formidable/example/post.js
@@ -1,43 +0,0 @@
-require('../test/common');
-var http = require('http'),
- util = require('util'),
- formidable = require('formidable'),
- server;
-
-server = http.createServer(function(req, res) {
- if (req.url == '/') {
- res.writeHead(200, {'content-type': 'text/html'});
- res.end(
- '<form action="/post" method="post">'+
- '<input type="text" name="title"><br>'+
- '<input type="text" name="data[foo][]"><br>'+
- '<input type="submit" value="Submit">'+
- '</form>'
- );
- } else if (req.url == '/post') {
- var form = new formidable.IncomingForm(),
- fields = [];
-
- form
- .on('error', function(err) {
- res.writeHead(200, {'content-type': 'text/plain'});
- res.end('error:\n\n'+util.inspect(err));
- })
- .on('field', function(field, value) {
- console.log(field, value);
- fields.push([field, value]);
- })
- .on('end', function() {
- console.log('-> post done');
- res.writeHead(200, {'content-type': 'text/plain'});
- res.end('received fields:\n\n '+util.inspect(fields));
- });
- form.parse(req);
- } else {
- res.writeHead(404, {'content-type': 'text/plain'});
- res.end('404');
- }
-});
-server.listen(TEST_PORT);
-
-console.log('listening on http://localhost:'+TEST_PORT+'/');
View
48 ...er/node-upload-server/node_modules/connect-form/node_modules/formidable/example/upload.js
@@ -1,48 +0,0 @@
-require('../test/common');
-var http = require('http'),
- util = require('util'),
- formidable = require('formidable'),
- server;
-
-server = http.createServer(function(req, res) {
- if (req.url == '/') {
- res.writeHead(200, {'content-type': 'text/html'});
- res.end(
- '<form action="/upload" enctype="multipart/form-data" method="post">'+
- '<input type="text" name="title"><br>'+
- '<input type="file" name="upload" multiple="multiple"><br>'+
- '<input type="submit" value="Upload">'+
- '</form>'
- );
- } else if (req.url == '/upload') {
- var form = new formidable.IncomingForm(),
- files = [],
- fields = [];
-
- form.uploadDir = TEST_TMP;
-
- form
- .on('field', function(field, value) {
- console.log(field, value);
- fields.push([field, value]);
- })
- .on('file', function(field, file) {
- console.log(field, file);
- files.push([field, file]);
- })
- .on('end', function() {
- console.log('-> upload done');
- res.writeHead(200, {'content-type': 'text/plain'});
- res.write('received fields:\n\n '+util.inspect(fields));
- res.write('\n\n');
- res.end('received files:\n\n '+util.inspect(files));
- });
- form.parse(req);
- } else {
- res.writeHead(404, {'content-type': 'text/plain'});
- res.end('404');
- }
-});
-server.listen(TEST_PORT);
-
-console.log('listening on http://localhost:'+TEST_PORT+'/');
View
1  fileTransfer/node-upload-server/node_modules/connect-form/node_modules/formidable/index.js
@@ -1 +0,0 @@
-module.exports = require('./lib/formidable');
View
73 ...Transfer/node-upload-server/node_modules/connect-form/node_modules/formidable/lib/file.js
@@ -1,73 +0,0 @@
-if (global.GENTLY) require = GENTLY.hijack(require);
-
-var util = require('./util'),
- WriteStream = require('fs').WriteStream,
- EventEmitter = require('events').EventEmitter,
- crypto = require('crypto');
-
-function File(properties) {
- EventEmitter.call(this);
-
- this.size = 0;
- this.path = null;
- this.name = null;
- this.type = null;
- this.hash = null;
- this.lastModifiedDate = null;
-
- this._writeStream = null;
-
- for (var key in properties) {
- this[key] = properties[key];
- }
-
- if(typeof this.hash === 'string') {
- this.hash = crypto.createHash(properties.hash);
- }
-
- this._backwardsCompatibility();
-}
-module.exports = File;
-util.inherits(File, EventEmitter);
-
-// @todo Next release: Show error messages when accessing these
-File.prototype._backwardsCompatibility = function() {
- var self = this;
- this.__defineGetter__('length', function() {
- return self.size;
- });
- this.__defineGetter__('filename', function() {
- return self.name;
- });
- this.__defineGetter__('mime', function() {
- return self.type;
- });
-};
-
-File.prototype.open = function() {
- this._writeStream = new WriteStream(this.path);
-};
-
-File.prototype.write = function(buffer, cb) {
- var self = this;
- this._writeStream.write(buffer, function() {
- if(self.hash) {
- self.hash.update(buffer);
- }
- self.lastModifiedDate = new Date();
- self.size += buffer.length;
- self.emit('progress', self.size);
- cb();
- });
-};
-
-File.prototype.end = function(cb) {
- var self = this;
- this._writeStream.end(function() {
- if(self.hash) {
- self.hash = self.hash.digest('hex');
- }
- self.emit('end');
- cb();
- });
-};
View
384 ...node-upload-server/node_modules/connect-form/node_modules/formidable/lib/incoming_form.js
@@ -1,384 +0,0 @@
-if (global.GENTLY) require = GENTLY.hijack(require);
-
-var fs = require('fs');
-var util = require('./util'),
- path = require('path'),
- File = require('./file'),
- MultipartParser = require('./multipart_parser').MultipartParser,
- QuerystringParser = require('./querystring_parser').QuerystringParser,
- StringDecoder = require('string_decoder').StringDecoder,
- EventEmitter = require('events').EventEmitter,
- Stream = require('stream').Stream;
-
-function IncomingForm(opts) {
- if (!(this instanceof IncomingForm)) return new IncomingForm;
- EventEmitter.call(this);
-
- opts=opts||{};
-
- this.error = null;
- this.ended = false;
-
- this.maxFieldsSize = opts.maxFieldsSize || 2 * 1024 * 1024;
- this.keepExtensions = opts.keepExtensions || false;
- this.uploadDir = opts.uploadDir || IncomingForm.UPLOAD_DIR;
- this.encoding = opts.encoding || 'utf-8';
- this.headers = null;
- this.type = null;
- this.hash = false;
-
- this.bytesReceived = null;
- this.bytesExpected = null;
-
- this._parser = null;
- this._flushing = 0;
- this._fieldsSize = 0;
-};
-util.inherits(IncomingForm, EventEmitter);
-exports.IncomingForm = IncomingForm;
-
-IncomingForm.UPLOAD_DIR = (function() {
- var dirs = [process.env.TMP, '/tmp', process.cwd()];
- for (var i = 0; i < dirs.length; i++) {
- var dir = dirs[i];
- var isDirectory = false;
-
- try {
- isDirectory = fs.statSync(dir).isDirectory();
- } catch (e) {}
-
- if (isDirectory) return dir;
- }
-})();
-
-IncomingForm.prototype.parse = function(req, cb) {
- this.pause = function() {
- try {
- req.pause();
- } catch (err) {
- // the stream was destroyed
- if (!this.ended) {
- // before it was completed, crash & burn
- this._error(err);
- }
- return false;
- }
- return true;
- };
-
- this.resume = function() {
- try {
- req.resume();
- } catch (err) {
- // the stream was destroyed
- if (!this.ended) {
- // before it was completed, crash & burn
- this._error(err);
- }
- return false;
- }
-
- return true;
- };
-
- this.writeHeaders(req.headers);
-
- var self = this;
- req
- .on('error', function(err) {
- self._error(err);
- })
- .on('aborted', function() {
- self.emit('aborted');
- })
- .on('data', function(buffer) {
- self.write(buffer);
- })
- .on('end', function() {
- if (self.error) {
- return;
- }
-
- var err = self._parser.end();
- if (err) {
- self._error(err);
- }
- });
-
- if (cb) {
- var fields = {}, files = {};
- this
- .on('field', function(name, value) {
- fields[name] = value;
- })
- .on('file', function(name, file) {
- files[name] = file;
- })
- .on('error', function(err) {
- cb(err, fields, files);
- })
- .on('end', function() {
- cb(null, fields, files);
- });
- }
-
- return this;
-};
-
-IncomingForm.prototype.writeHeaders = function(headers) {
- this.headers = headers;
- this._parseContentLength();
- this._parseContentType();
-};
-
-IncomingForm.prototype.write = function(buffer) {
- if (!this._parser) {
- this._error(new Error('unintialized parser'));
- return;
- }
-
- this.bytesReceived += buffer.length;
- this.emit('progress', this.bytesReceived, this.bytesExpected);
-
- var bytesParsed = this._parser.write(buffer);
- if (bytesParsed !== buffer.length) {
- this._error(new Error('parser error, '+bytesParsed+' of '+buffer.length+' bytes parsed'));
- }
-
- return bytesParsed;
-};
-
-IncomingForm.prototype.pause = function() {
- // this does nothing, unless overwritten in IncomingForm.parse
- return false;
-};
-
-IncomingForm.prototype.resume = function() {
- // this does nothing, unless overwritten in IncomingForm.parse
- return false;
-};
-
-IncomingForm.prototype.onPart = function(part) {
- // this method can be overwritten by the user
- this.handlePart(part);
-};
-
-IncomingForm.prototype.handlePart = function(part) {
- var self = this;
-
- if (part.filename === undefined) {
- var value = ''
- , decoder = new StringDecoder(this.encoding);
-
- part.on('data', function(buffer) {
- self._fieldsSize += buffer.length;
- if (self._fieldsSize > self.maxFieldsSize) {
- self._error(new Error('maxFieldsSize exceeded, received '+self._fieldsSize+' bytes of field data'));
- return;
- }
- value += decoder.write(buffer);
- });
-
- part.on('end', function() {
- self.emit('field', part.name, value);
- });
- return;
- }
-
- this._flushing++;
-
- var file = new File({
- path: this._uploadPath(part.filename),
- name: part.filename,
- type: part.mime,
- hash: self.hash
- });
-
- this.emit('fileBegin', part.name, file);
-
- file.open();
-
- part.on('data', function(buffer) {
- self.pause();
- file.write(buffer, function() {
- self.resume();
- });
- });
-
- part.on('end', function() {
- file.end(function() {
- self._flushing--;
- self.emit('file', part.name, file);
- self._maybeEnd();
- });
- });
-};
-
-IncomingForm.prototype._parseContentType = function() {
- if (!this.headers['content-type']) {
- this._error(new Error('bad content-type header, no content-type'));
- return;
- }
-
- if (this.headers['content-type'].match(/urlencoded/i)) {
- this._initUrlencoded();
- return;
- }
-
- if (this.headers['content-type'].match(/multipart/i)) {
- var m;
- if (m = this.headers['content-type'].match(/boundary=(?:"([^"]+)"|([^;]+))/i)) {
- this._initMultipart(m[1] || m[2]);
- } else {
- this._error(new Error('bad content-type header, no multipart boundary'));
- }
- return;
- }
-
- this._error(new Error('bad content-type header, unknown content-type: '+this.headers['content-type']));
-};
-
-IncomingForm.prototype._error = function(err) {
- if (this.error) {
- return;
- }
-
- this.error = err;
- this.pause();
- this.emit('error', err);
-};
-
-IncomingForm.prototype._parseContentLength = function() {
- if (this.headers['content-length']) {
- this.bytesReceived = 0;
- this.bytesExpected = parseInt(this.headers['content-length'], 10);
- this.emit('progress', this.bytesReceived, this.bytesExpected);
- }
-};
-
-IncomingForm.prototype._newParser = function() {
- return new MultipartParser();
-};
-