Giter VIP home page Giter VIP logo

swfupload's Introduction

SWFUpload

SWFUpload - Fork from SWFUpload Build 2.2.1

Original Project at: http://code.google.com/p/swfupload/

LICENCE

Copyright (C) 2006-2007 Lars Huring, Olov Nilzén and Mammon Media

Copyright (C) 2007-2008 Jake Roberts

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.

INTRODUCTION

SWFUpload is a JavaScript Library that wraps the Flash Player's upload function. It brings your uploads to the next level with Multiple File Selection, Upload Progress and Client-side File Size Checking.

Unlike other Flash upload tools, SWFUpload leaves the UI in the developer's hands. Using a set of event handlers developers can display upload progress and status to the user in their own HTML/CSS UI.

SWFUpload has been featured in such projects as YouTube and WordPress.

USE

This version of SWFUpload has some new cool features you can use on your own like Multipart Upload and Socket Upload. With this two new modes you can pass custom headers to the request and upload using chunks.

For Multipart:

	var settings = {
		use_multipart : true
	}

For Socket (this mode override the multipart method):

	var settings = {
		use_socket : true
	}

If you want to use chunks with multipart, you can set (the rules for size are the same as File Size Limit):

	var settings = {
		use_chunk : true,
		chunk_size : "200 kb"
	}

NOTE: Attention, the size of the chunk also refers to the packet size on socket write before flushing the memory.

Finally, for custom headers you can use the structure:

	var settings = {
		headers: { "HeaderName1": 'value', 
				   "HeaderName2": 'value',
				   "HeaderName3": {'param1': 'value', 'param2': 'value'}
				 }
	}

Headers like Host, Referer, Origin, Content-Type, Content-Length, Content-Disposition, User-Agent are ignored.

Fixed Vulnerabilities

Acknowledgements

Thanks to WordPress Team by the security-swfupload

swfupload's People

Contributors

danifbento avatar bertm avatar nmjesus avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.