Skip to content

Commit

Permalink
Doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
matm committed Sep 14, 2015
1 parent 3a4d52d commit e8d52d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,20 @@ The `fileupload` object needs the `xhrFields`, `maxChunkSize` and `add` fields t

Download the [latest release](https://github.com/blueimp/jQuery-File-Upload/releases) of jQuery-File-Upload,
edit the `js/main.js` file in the distribution and make the `fileupload` iniitialization look like
(replacing the `server:port` part with the name/IP of your server running the `coquelicot` program):
(replacing the `localhost:9073` part with the name:port of your server running the `coquelicot` program):

```
$('#fileupload').fileupload({
// Send cross-domain cookies
xhrFields: {withCredentials: true},
url: 'http://server:port/upload/files',
url: 'http://localhost:9073/upload/files',
// Chunk size in bytes
maxChunkSize: 1000000,
// Enable file resume
add: function (e, data) {
var that = this;
$.ajax({
url: 'http://server:port/upload/resume',
url: 'http://localhost:9073/upload/resume',
xhrFields: {withCredentials: true},
data: {file: data.files[0].name}
}).done(function(result) {
Expand Down

0 comments on commit e8d52d3

Please sign in to comment.