Completed
Last Updated: 04 Jul 2023 14:03 by ADMIN
Release 4.4.0 (07/19/2023) (R3 PI1)
Created by: Emran
Comments: 0
Category: Upload
Type: Feature Request
18

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

=====

ADMIN EDIT:

A possible workaround is to use a ListView and mimic the Upload/FileSelect interface:

<TelerikUpload SaveUrl="api/upload/save"
               RemoveUrl="api/upload/remove">
</TelerikUpload>

@{
    if (OldFiles.Any())
    {
        <p>Older files:</p>

        <div class="k-upload">
            <ul class="k-upload-files k-reset">
                <TelerikListView Data="@OldFiles" @ref="@ListView">
                    <Template>
                        <li class="k-file k-file-success">
                            <div class="k-file-single">
                                <span class="k-file-group-wrapper">
                                    <span class="k-file-group k-icon k-i-file"></span>
                                </span>
                                <span class="k-file-name-size-wrapper">
                                    <span class="k-file-name " title="@context.Name"> @context.Name </span>
                                    <span class="k-file-validation-message k-text-success">Existing file.</span>
                                </span>
                                <span class="k-upload-status">
                                    <TelerikButton ButtonType="@ButtonType.Button" Title="Remove"
                                                   OnClick="@( _ => RemoveOldFile(context) )"
                                                   Icon="x" FillMode="@ThemeConstants.Button.FillMode.Flat" />
                                </span>
                            </div>
                        </li>
                    </Template>
                </TelerikListView>
            </ul>
        </div>
    }
}

@code {
    TelerikListView<UploadedFile> ListView { get; set; }

    List<UploadedFile> OldFiles { get; set; } = new List<UploadedFile>()
    {
        new UploadedFile() { Id = 1, Name = "foo.txt" },
        new UploadedFile() { Id = 2, Name = "bar.txt" },
    };

    async Task RemoveOldFile(UploadedFile file)
    {
        // delete the file from the remote server...
        // ...
 
        // update the client UI
        OldFiles.Remove(file);
        ListView.Rebind();
    }

    public class UploadedFile
    {
        public int Id { get; set; }
        public string Name { get; set; }
    }
}

Unplanned
Last Updated: 23 Oct 2024 04:52 by ADMIN
Created by: Jay
Comments: 21
Category: Upload
Type: Feature Request
70
The goal is to be able to upload large files (above the server limit which is usually 20-30MB).
Completed
Last Updated: 22 Feb 2022 08:33 by ADMIN
Created by: Alan
Comments: 3
Category: Upload
Type: Feature Request
19

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

 

Completed with 3.0.0 release

 

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");
    }
}

 

---

Completed
Last Updated: 12 Jan 2022 15:10 by ADMIN
Release 3.0.0
Created by: Alan
Comments: 1
Category: Upload
Type: Feature Request
30
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.
Completed
Last Updated: 09 Mar 2023 15:32 by ADMIN
Release 4.1.0 (15/03/2023)
Created by: Alan
Comments: 2
Category: Upload
Type: Feature Request
69

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.

---

ADMIN EDIT

---

The request targets both the Upload and the FileSelect components.

Completed
Last Updated: 28 Feb 2023 11:57 by ADMIN
Release 4.1.0 (15/03/2023)
Created by: Dan
Comments: 8
Category: Upload
Type: Feature Request
32
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
4
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.
Completed
Last Updated: 09 Dec 2021 18:06 by Samuel
Release 2.28.0
If a request fails once, the upload will give you a Retry button. This button does not fire OnUpload again, so the request no longer has the custom logic (such as bearer tokens).
Unplanned
Last Updated: 23 Apr 2020 08:03 by ADMIN
The file info passed in UploadSuccessEventArgs to the event contains HTML entities

e.g. for the file "Golf & Country Club.png" the file info name is "Golf &amp; Country Club"  which leads to an exception.
Completed
Last Updated: 23 Mar 2020 15:06 by Christian
Created by: Christian
Comments: 2
Category: Upload
Type: Bug Report
1

In version 2.9.0 of the library there are two small spelling issues:

Scheduler_Recurrence_Editor_Frequencies_Monthly: Montly //Montly is written without "h"
Upload_InvalidMinFileSize: File size too small //Missing dot after the message (E.g. Upload_InvalidMaxFileSize has an ending dot).

 

Best regards,

Christian

1 2