AnantLabs / ocupload

Automatically exported from code.google.com/p/ocupload
0 stars 0 forks source link

onCompleate won't work if the the response to the upload has no content #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a script that returns http code 204 and no content in the http 
response after upload
2. upload a file to that script
3. function in onComplete is not executed

What is the expected output? What do you see instead?
execution of the onComplete function

What version of the product are you using? On what operating system?
1.1.2 on Chronium 5 on Ubuntu 10.4

Please provide any additional information below.

First of all thanks for a great plugin. Just integrated it in to my project. I 
don't know if there can be any solution for this as the limitations of the 
load() method imply here. But I would just like to warn every one that if you 
are uploading a file to a REST api that returns 204 on success then you will 
have to change that api to return something (anything ok with the mime type) or 
use some flash or java based plugin to overcome this.

Original issue reported on code.google.com by wal...@gmail.com on 4 Sep 2010 at 10:19