forked from goker-dev/droparea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
executable file
·42 lines (27 loc) · 1.13 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
droparea is a HTML5 drag and drop image/file jQuery plug-in and a php script for
server-side.
I added:
* client-side image resizing with canvas on browser option
* data url option for sending a file/image as a text field with ajax
* click event for browsing files
I developed it to use on my Uygulama project's new version.
I've only tested it on
* Chromium (14.0.835.202),
* Google Chrome (15.0.874.120),
* Mozilla Firefox (3.6.17) "has some bugs"
and it works enough for me for now!
goker.cebeci, the developer
==USAGE==
<input type="file" class="droparea" data-crop="true" ... />
<script>
$('.droparea').droparea([options]);
</script>
==DOC==
* If you want to post more data while uploading a file, you can use "data tag".
For example: data-custom="custom-data".
data-width,
data-height : Optional but required for canvas resizing.
data-crop : Optional. This is crop option for canvas resizing. [true/false]
data-canvas : Canvas resizing option. Default value is false.
data-post : Optional. This is an URL for direct posting.
data-type : Optional. File tld. [png, jpg, zip] Separate with coma if more than one.