Code Monkey home page Code Monkey logo

cyberhck / uploadfive Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 6.0 338 KB

jQuery based plugin for upload script, just use this script and initiate the script over the element and the element changes to beautiful upload client where user selects file and gets a upload button, the upload progress is shown in a progress bar and uploaded and remaining are displayed in a div. Very useful for file uploads

PHP 5.64% CSS 26.31% JavaScript 68.06%

uploadfive's Introduction

uploadfive

Started doing this project just for fun, but it turned out to be used in many of my projects.

A jQuery based file upload plugin, but still this is a spaghetti code, may be it is very hard to understand the code, and so is its maintainability, but for now, I'm using this, still looking forward if I can change the code entirely and solve some issues, currently there is only 2 issues, one is you can use this plugin only once in a document. And you have no control when the file upload is success, I'll be re coding this is node.js's way, still you can hack around uploadfive.js and change the script which is used to handle the complete event. And one more thing, you can't really hit cancel once the upload has started, so if your user wants to hit cancel, tell them to refresh the browser.

Usage

Include uploadfive.js

Use the following script

$(document).ready(function(e) {
$("#uploadfive").uploadfive();
});

And add the following html

<div id="upload" action="method.php"></div>

method.php must contain your real file upload script. You can also use it for asp or jsp just change the action attribute for the div.

The element to be made upload client must be a <div> element, it can not be a <form>. Dependencies

Needs jQuery, jQuery UI (progressbar)

uploadfive's People

Contributors

cyberhck avatar nootanghimire avatar

Stargazers

 avatar

Watchers

 avatar  avatar

uploadfive's Issues

Upload Complete Event

There is no control over the upload complete event, so need to add a upload complete.

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.