{ "info": { "author": "UNKNOWN", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [], "description": "js.html5_upload\n*************\n\nIntroduction\n============\n\nThis library packages `jquery-html5-upload`_ for `fanstatic`_.\n\n.. _`fanstatic`: http://fanstatic.org\n.. _`jquery-html5-upload`: https://github.com/mihaild/jquery-html5-upload\n\nThis requires integration between your web framework and ``fanstatic``,\nand making sure that the original resources (shipped in the ``resources``\ndirectory in ``js.html5_upload``) are published to some URL.\n\n\njquery-html5-upload Documentation\n=================================\n\nHTML5 allows attribute multiple in input tag. It is possible to select multiple files in one dialog without flash.\nWith this plugin, you can easy upload multiple files and display progress of uploading.\nWorks in modern versions of Firefox and WebKit browsers.\nWasn't tested in IE.\n\nThis plugin is very simple. I think, everything is clean from it's source. But if you want to have a list of it's options - they are presented below.\n\n## Options\n\n### Events\n\nAll events except \"change\" used by plugin have prefix \"html5_upload.\".\n\n#### Events used by plugin\n\nIt is not recommended to set handlers for this events manual.\n\n**start**\nStart upload selected files\n\n**cancelOne**\nCancel upload of currently uploading file\n\n**cancelAll**\nCancel current uploading\n\n**destroy**\nRemoves traces of plugin work\n\n#### On* events\n\nThis events can be set by passing it to plugin constructor.\nWhen presented, \n**name** if the current file **name**,\n**number** is the number of current file,\n**total** is count of currenly selected files.\n\n`onStart(event, total)`\nCalled when starting upload files.\n\n`onStartOne(event, name, number, total)`\nCalled when a file begins uploading.\n\n`onProgress(event, progress, name, number, total)`\nCalled when a `progress` part of file (0 <= `progress` <= 1) was uploaded.\n\n`onFinishOne(event, response, name, number, total)`\nCalled when one file was uploaded. `response` is the server response.\n\n`onFinish(event, total)`\nCalled when all files was uploaded.\n\n`onError(event, name, error)`\n(not fully implemented yet)\nCalled when XMLHttpRequest has an error.\n\n### gen* and set* options\n\nSometimes you need no full control on all plugin events. If so, you can pass the gen* and set* functions to automatically set messages.\n\n#### gen* functions\n\nBy default, they use STATUSES option to generate the text.\n\n`genName(file, number, total)`\n\n`genStatus(progress, finished)`\n**progress** is a fraction. **finished** is true if file uploaded and response otained.\n\n`genProgress(loaded, total)`\n**loaded** is count of bytes of current file which currently loaded, **total** is current file size.\n\n#### set* function\n\nThis functions get plain text from **set*** functions\n\n`setName(text)`\n\n`setStatus(text)`\n\n`setProgress(text)`\n\n### Other options\n\n**autostart** (bool) start when the input value is changed\n\n**autoclear** (bool) clear the input value when all files are uploaded\n\n**stopOnFirstError** (bool) cancel uploading remaining files if an error occurred\n\n**url** (string|function) url where send files, or function which will return it\n\n**sendBoundary** (bool) format headers to emulate usual form file sending.\n\n**fieldName** (string|function) if setBoundary is true, value for file field name\n\n\nCHANGES\n*******\n\n0.0.1\n=====\n\n- Initial release.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": "", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "js.html5_upload", "package_url": "https://pypi.org/project/js.html5_upload/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/js.html5_upload/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/js.html5_upload/0.1/", "requires_dist": null, "requires_python": null, "summary": "Fanstatic packaging of jquery-html5-upload", "version": "0.1" }, "last_serial": 793715, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "f50eefe1dc7f9ac19d2571c8176084f8", "sha256": "11586cd5e40e1359cbdc1460624c5fcd4d19bc6df55ebedc77683fdabc7cb8e1" }, "downloads": -1, "filename": "js.html5_upload-0.1.tar.gz", "has_sig": false, "md5_digest": "f50eefe1dc7f9ac19d2571c8176084f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6538, "upload_time": "2012-05-14T00:24:19", "url": "https://files.pythonhosted.org/packages/56/d4/9844dca69beffb985d60eebf62a957fbc4a60b3a002101a3c956112d4b94/js.html5_upload-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f50eefe1dc7f9ac19d2571c8176084f8", "sha256": "11586cd5e40e1359cbdc1460624c5fcd4d19bc6df55ebedc77683fdabc7cb8e1" }, "downloads": -1, "filename": "js.html5_upload-0.1.tar.gz", "has_sig": false, "md5_digest": "f50eefe1dc7f9ac19d2571c8176084f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6538, "upload_time": "2012-05-14T00:24:19", "url": "https://files.pythonhosted.org/packages/56/d4/9844dca69beffb985d60eebf62a957fbc4a60b3a002101a3c956112d4b94/js.html5_upload-0.1.tar.gz" } ] }