Package: coppe.govupload
*****************coppe.govupload*****************.. contents:: Table of ContentsLife, the Universe, and Everything----------------------------------File upload widget with multiple file selection, drag&drop support, progressbars, client-side image resizing and preview images.``coppe.govupload`` is smoothly integrated with Plone's UI and works withany folderish content type based on Archetypes or Dexterity.Mostly Harmless---------------.. image:: https://secure.travis-ci.org/collective/coppe.govupload.png?branch=master:alt: Travis CI badge:target: http://travis-ci.org/collective/coppe.govupload.. image:: https://coveralls.io/repos/collective/coppe.govupload/badge.png?branch=master:alt: Coveralls badge:target: https://coveralls.io/r/collective/coppe.govupload.. image:: https://pypip.in/d/coppe.govupload/badge.png:alt: Downloads:target: https://pypi.python.org/pypi/coppe.govuploadGot an idea? Found a bug? Let us know by `opening a support ticket`_... _`opening a support ticket`: https://github.com/collective/coppe.govupload/issuesDon't Panic-----------Installation^^^^^^^^^^^^To enable this product in a buildout-based installation:#. Edit your buildout.cfg and add ``coppe.govupload`` to the list of eggs toinstall::[buildout]...eggs =coppe.govupload#. If you're using Plone 4.2, you may need to pin the right versions of thejQuery and jQuery Tools packages::[versions]plone.app.jquery = 1.7.2plone.app.jquerytools = 1.5.7After updating the configuration you need to run ''bin/buildout'', which willtake care of updating your system.Go to the 'Site Setup' page in a Plone site and click on the 'Add-ons' link.Check the box next to ``coppe.govupload`` and click the 'Activate' button... Note::You may have to empty your browser cache and save your resource registriesin order to see the effects of the product installation.Features^^^^^^^^- Support for Archetypes and Dexterity-based content types- **Multiple file upload**: Allows to select multiple files at once and uploadthem sequentially (simultaneously is not currently enabled)- **Drag & Drop support**: Allows to upload files by dragging them from yourdesktop or file manager and dropping them on your browser window- **Upload progress bar**: Shows a progress bar indicating the upload progressfor individual files and for all uploads combined- **Cancelable uploads**: Individual file uploads can be canceled to stop theupload progress- **Client-side image resizing**: Images can be automatically resized onclient-side with browsers supporting the required JS APIs- **Preview images**: A preview of image files can be displayed beforeuploading with browsers supporting the required JS APIs- **No browser plugins required**: The implementation is based on openstandards like HTML5 and JavaScript and requires no additional browserplugins- **Graceful fallback for legacy browsers**: Uploads files via XMLHttpRequestsif supported and uses iframes as fallback for legacy browsers- **Cross-site file uploads**: Supports uploading files to a different domainwith Cross-site XMLHttpRequestsBrowsers supported^^^^^^^^^^^^^^^^^^- Google Chrome 7.0+- Mozilla Firefox 3.0+- Microsoft Internet Explorer 6.0+- Opera 10.0+- Apple Safari 4.0+Drag & Drop is only supported on Google Chrome, Firefox 4.0+ and Safari 5.0+.Client-side image resizing is only supported on Google Chrome, Firefox 4.0+.Microsoft Internet Explorer has no support for multiple file selection orupload progress.`Extended browser support information`_.Future features^^^^^^^^^^^^^^^We want to implement these features at some point in the future:- Refactoring of widget's UI- **Resumable uploads**: Aborted uploads can be resumed with browserssupporting the Blob API- **Chunked uploads**: Large files can be uploaded in smaller chunks withbrowsers supporting the Blob API- **HTML file upload form fallback**: Shows a standard HTML file upload formif JavaScript is disabled- Enable/disable automatic uploads- Server side image resizing- Server side file type constraint- Asynchronous Module Definition (`AMD`_) support- Widget for "allowed extensions" optionDeveloper's notes^^^^^^^^^^^^^^^^^In the folder "static" you are going to find the JavaScript used in thisproject; here a list with the file name and function:applications.jsThe main file; here you will find 2 important things: plugin initializationand inheritance of basic UI code with custom templates (e.g. every new filedropped in the file upload widget is going to generate a new row, here isthe code for that).`canvas-to-blob.min.js`_Converts canvas elements into Blob objects, is a polyfill for the standardHTML canvas.toBlob method.`load-image.min.js`_Load Image is a function to load images provided as File or Blob objects orvia URL.jquery.fileupload.jsThe most basic version of the File Upload plugin, with no UI.jquery.fileupload-fp.jsExtends the basic fileupload widget with image processing functionality.jquery.fileupload-ui.jsExtends the FP version, adds complete user interface interaction.jquery.iframe-transport.jsUsed for cross-site iframe transport uploads a way of degradation for theXHR upload.cors/jquery.xdr-transport.jsjQuery XDomainRequest Transport plugin; enables cross-domain AJAX requests(GET and POST only) (not really used, its just there if you need toimplement that kind of functionality).vendor/jquery.ui.widget.jsjQuery UI widget factory; very lightweight, flexible base for buildingcomplex, statefull plugins with a consistent API. It is designed for generalconsumption by developers who want to create object-oriented componentswithout reinventing common infrastructure.vendor/jquery.getimagedata.min.jsIt enables pixel level access to images from different origins. It works by sending a JSONP request with the URL of the image to the server. The server then converts the image into base64 encoded data URL and sends the image back as a JSON object. (what this script does, can be done with CORS)To-do list^^^^^^^^^^* Check if constraints are in place before adding the menu item... _`Extended browser support information`: https://github.com/blueimp/jQuery-File-Upload/wiki/Browser-support.. _`canvas-to-blob.min.js`: https://github.com/blueimp/JavaScript-Canvas-to-Blob.. _`load-image.min.js`: https://github.com/blueimp/JavaScript-Load-Image.. _`AMD`: https://github.com/amdjs/amdjs-api/wiki/AMDNot entirely unlike-------------------`collective.quickupload`_Pure javascript files upload tool for Plone, with drag and drop, multiselection, and progress bar.`coppe.govuploadify`_Multi File Upload for Plone... _`collective.quickupload`: http://pypi.python.org/pypi/collective.quickupload.. _`coppe.govuploadify`: http://pypi.python.org/pypi/coppe.govuploadifyShare and Enjoy---------------``coppe.govupload`` would not have been possible without the contribution ofthe following people:- Silvestre Huens- Joaquín Rosales- Héctor Velarde- Gonzalo AlmeidaYou can find an updated list of package contributors on `GitHub`_.``coppe.govupload`` is an implementation of the `jQuery File Upload`_ pluginfor Plone.Development sponsored by Open Multimedia... _`jQuery File Upload`: http://blueimp.github.com/jQuery-File-Upload/.. _`GitHub`: https://github.com/collective/coppe.govupload/contributorsChangelog---------1.0.1 (2017-03-29)--------------------### R2 - Sprint 8- Permite qualquer tipo de extensão de arquivo para upload.1.0rc1 (2017-01-10)--------------------### R2 - Sprint 3- Fork do produto collective.upload para trabalhar com ArquivoBibliotecano produto mpdg.govbr.biblioteca