jquery-upload-file icon indicating copy to clipboard operation
jquery-upload-file copied to clipboard

I find one file is not uploaded correctly in ajax request

Open landall opened this issue 4 years ago • 1 comments

I can upload other files but this one. some fields of http request: Content-Length: 92 ------WebKitFormBoundaryx69wMmFWPBUleYQT Content-Disposition: form-data; name="myfile"; filename="3930572329_img_story_total_1.dds.mod.dds.png" Content-Type: image/png

------WebKitFormBoundaryx69wMmFWPBUleYQT--

3930572329_img_story_total_1 dds mod dds

Chrome 81.0.4044.129

Core code:

$("#fileuploader").uploadFile({
url:"f_upload.php?a=attachments&c=2&e=24",
fileName:"myfile",
showPreview:true,
maxFileSize:5*1024*1024,
onSuccess: function(files,data,xhr,pd) {
console.log('Upload.OnSuccess:');
console.log(data);
},
onError: function(files,status,errMsg,pd)
{
console.log('Upload.OnError:');
console.log(status);
console.log(errMsg);
}
});


landall avatar May 04 '20 15:05 landall

I find why. the server side does not judge $_FILES["myfile"]["error"] when the upload is failed for server-side reason.

landall avatar May 04 '20 16:05 landall