Unplanned
Last Updated: 01 May 2021 10:04 by ADMIN
Created by: Timothy J
Comments: 0
Category: Upload
Type: Feature Request
1

I am trying to upload files to an URL that is not in my control and it requires the PUT HTTP method. The Telerik Blazor Upload always uses a POST.

I imagine API like this would be nice:

 

        <TelerikUpload SaveUrl="@SaveUrl" SaveMethod="PUT">

        </TelerikUpload>

 

---

ADMIN EDIT

In the meantime, there are two possible solutions:

  • Upload the file to your own server that can accept POST and use that server to upload to the third party. This can help hide URLs and security from your end users as well.
  • Implement a FileSelect type of component to get the file in code and upload it with your own HTTP request from C#.

---

Unplanned
Last Updated: 27 Apr 2021 17:32 by ADMIN
Created by: Matthew
Comments: 0
Category: Upload
Type: Feature Request
3
In the Blazor upload control, is there a way to upload directories?

 

In MVC, its just

.Directory(true)

.DirectoryDrop(true)
Unplanned
Last Updated: 10 Mar 2021 08:36 by ADMIN

<TelerikUpload SaveUrl="@SaveUrl"
                               RemoveUrl="@RemoveUrl"
                               AllowedExtensions="@( new List<string>() { ".pdf", ".docx" } )"
                               OnSelect="@OnSelectHandler"
                               OnCancel="@OnCancelHandler"
                               OnRemove="@OnRemoveHandler">
                </TelerikUpload>
When the AllowedExtensions is set for the Telerik Upload control, it is expected that the File selection dialog box should filter the files by the file types in the Allowed extensions only. However, the dialog shows all files.
Unplanned
Last Updated: 10 Mar 2021 08:24 by ADMIN
Created by: Alan
Comments: 2
Category: Upload
Type: Feature Request
14

I would like to have the upload component but change the text on the button (or maybe its entire content through a render fragment template) through a Parameter on the component level.

At the moment I can only do this through localization for all components.

Unplanned
Last Updated: 01 Feb 2021 08:37 by ADMIN

Is it possible to programmatically perform actions on the uploader, such as to remove files, rather than having to click on the remove button on each uploaded file?

---

ADMIN EDIT

Might be related to the ability to have initial files shown in the list: https://feedback.telerik.com/blazor/1485660-initial-files-in-blazor-upload.

At the moment, you could try using JS Interop to loop over the list, determine which file you want to remove and .click() its remove button. Here is a basic example of getting the buttons to click the second one. You could traverse the DOM to get the file name, or you could keep a collection of the files to use indexes in a fashion similar to this example.

@inject IJSRuntime _js

@* move this script to a correct location it's here as ahack to make the snippet shorter and easy to copy  *@
<script suppress-error="BL9992">
    function removeSecondFile(){
        var deleteButtons = document.querySelectorAll("li.k-file button span.k-delete");
        if(deleteButtons && deleteButtons.length > 1){
            deleteButtons[1].click();
        }
    }
</script>

<TelerikUpload AutoUpload="false" SaveUrl="my-endpoint"></TelerikUpload>
<TelerikButton OnClick="@RemoveSecondFile">Remove second file</TelerikButton>

@code{
    async Task RemoveSecondFile()
    {
        await _js.InvokeVoidAsync("removeSecondFile");
    }
}

---

Duplicated
Last Updated: 09 Nov 2020 12:44 by ADMIN
Created by: Tyler
Comments: 1
Category: Upload
Type: Feature Request
0

Right now we are hiding it based on styling. 

    .k-file-success{
    
    display:none !important;
    }
    
    
Would be nice to have a property to hide it.

We do this to provide a customized display of files uploaded.
Unplanned
Last Updated: 22 Sep 2020 04:47 by ADMIN
Created by: Emran
Comments: 0
Category: Upload
Type: Feature Request
9
I want to be able to clear all successfully uploaded files in the success event, like in Kendo jQuery: https://docs.telerik.com/kendo-ui/api/javascript/ui/upload/methods/clearallfiles
Unplanned
Last Updated: 22 Sep 2020 04:45 by ADMIN
Created by: Emran
Comments: 0
Category: Upload
Type: Feature Request
3
Like in the Kendo Upload https://docs.telerik.com/kendo-ui/api/javascript/ui/upload/configuration/files - I want to show some files initially to my user
Unplanned
Last Updated: 02 Sep 2020 15:00 by ADMIN
Created by: Jay
Comments: 2
Category: Upload
Type: Feature Request
11
The goal is to be able to upload large files (above the server limit which is usually 20-30MB).
Unplanned
Last Updated: 13 Jul 2020 08:37 by ADMIN
Created by: Alan
Comments: 0
Category: Upload
Type: Feature Request
17
If I set AutoUpload=false, I have a button that starts the upload process. I would like to be able to do that with my own button.
Pending Review
Last Updated: 08 Jul 2020 06:51 by Alan
Created by: Alan
Comments: 0
Category: Upload
Type: Feature Request
10

I would like to have my users click my own button or element to trigger the file select dialog that you get from clicking the "Select Files..." button on the Upload component.

A workaround is to use a function like this

window.customUploadClick = function () {
    $('.k-upload-button input').trigger('click');
}

---

ADMIN EDIT

If you are not using jQuery already, you don't have to add it for this, standard browser API can do this too:

@inject IJSRuntime _js

<script suppress-error="BL9992">
    window.customUploadClick = function () {
        document.querySelector(".k-upload-button input").click();
    }
</script>

<TelerikButton OnClick="@InvokeSelectClick">invoke click</TelerikButton>

<TelerikUpload></TelerikUpload>

@code{
    async Task InvokeSelectClick()
    {
        await _js.InvokeVoidAsync("customUploadClick");
    }
}

---

Unplanned
Last Updated: 09 Jun 2020 14:00 by ADMIN
Created by: Dan
Comments: 0
Category: Upload
Type: Feature Request
10
I would like to use a custom zone on my page where people can drop files. At the moment, the upload requires a click on the "upload" button.
Unplanned
Last Updated: 21 May 2020 16:58 by ADMIN
Created by: Ryan
Comments: 0
Category: Upload
Type: Feature Request
2
I want a single button that will call the RemoveUrl for all uploaded files. At the moment, there is a separate button for each file only.