Hi,
I need to send some dynamic parameters, (path and others), when uploading files from js.We're using kendoUpload control in a .NET MVC project, when selecting multiple files that are tiny in size there is no problem to select and upload many (37 txt files with a size close to 0 used in example). But when trying upload as little as 6 files with a size of around 400Kb the ui seems to upload 1 file, freeze and after some 20 - 30 seconds returns an upload error (hits the "error" method of the kendoUpload object that is).
$("#files").kendoUpload({
async: {
chunkSize: 2048000,
concurrent: false,
saveUrl: infra.App.baseUrl + "Api/Upload/AdicionarAnexos/" + wbc.Upload.sPastaDestino + "/" + wbc.Upload.nCdModulo,
autoUpload: false,
},
...
}
Hi Guys,
Is there a quick way to remove files from a Kendo UI Upload plus fire the corresponding remove request on the server? I have a Kendo UI Form where I added the Kendo Upload. When the user clicks the Clear button in the form, the files are removed from the list however the remove request is not fired thus, the uploaded files are still in the server.
This is the code snippet on how I have added the kendo upload to the kendo form:
$('<input type="file" name="' + options.field + '" id="' + options.field + '"/>').appendTo(container)
.kendoUpload({
multiple: false,
async: {
saveUrl: "/api/upload/save",
removeUrl: "/api/upload/remove"
},
validation: {
allowedExtensions: [".jpg", ".gif"]
},
upload: (e: kendo.ui.UploadUploadEvent) => {
e.data = { uploadId: this._uploadId };
},
remove: (e: kendo.ui.UploadRemoveEvent) => {
e.data = { uploadId: this._uploadId };
},
success: (e: kendo.ui.UploadSuccessEvent) => {
this.enableSubmit(e.operation === 'upload');
}
})
I have tried using the removeAllFiles() or removeFile() but doesn't seem to do any request calls.
Hoping to hear from you soon.
Kindest regards, Ruby.
would like to check if it is possible to style the upload control to as follows
when no file selected
after file selected
Hi everybody.
Is it possible in JQuery KendoUpload to change the binary data before sending it to the server? Specifically pictures. We need to reduce the size of the image before sending it to the server. Does Kendo offer image resizing? Ideally in the upload?
Using this example: https://demos.telerik.com/kendo-ui/spreadsheet/server-side-import-export
I can't find the server-side script being run by this config: saveUrl: "/kendo-ui/spreadsheet/upload"
Where can I find this server-side script?